Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144583857
D10386.1775557126.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
661 B
Referenced Files
None
Subscribers
None
D10386.1775557126.diff
View Options
Index: head/sys/net/if_clone.c
===================================================================
--- head/sys/net/if_clone.c
+++ head/sys/net/if_clone.c
@@ -387,10 +387,8 @@
ifc->ifc_create = create;
ifc->ifc_destroy = destroy;
- if (if_clone_attach(ifc) != 0) {
- if_clone_free(ifc);
+ if (if_clone_attach(ifc) != 0)
return (NULL);
- }
EVENTHANDLER_INVOKE(if_clone_event, ifc);
@@ -410,10 +408,8 @@
ifc->ifcs_destroy = destroy;
ifc->ifcs_minifs = minifs;
- if (if_clone_attach(ifc) != 0) {
- if_clone_free(ifc);
+ if (if_clone_attach(ifc) != 0)
return (NULL);
- }
for (unit = 0; unit < minifs; unit++) {
char name[IFNAMSIZ];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 10:18 AM (59 m, 39 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28281995
Default Alt Text
D10386.1775557126.diff (661 B)
Attached To
Mode
D10386: Do not double free the memory in if_clone.
Attached
Detach File
Event Timeline
Log In to Comment