Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173486437
D59387.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
572 B
Referenced Files
None
Subscribers
None
D59387.diff
View Options
diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1102,9 +1102,18 @@
* the work top-down for us.
*/
if (shutdown) {
+ struct epoch_tracker et;
+ struct ifaddr *ifa;
+
/* Give interface users the chance to clean up. */
EVENTHANDLER_INVOKE(ifnet_departure_event, ifp);
+ NET_EPOCH_ENTER(et);
+ CK_STAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
+ ifa_free(ifa);
+ }
+ NET_EPOCH_EXIT(et);
+
/*
* In case of a vmove we are done here without error.
* If we would signal an error it would lead to the same
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 27, 7:21 AM (8 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38332195
Default Alt Text
D59387.diff (572 B)
Attached To
Mode
D59387: net/if: Fix ifa memory leak during vnet removal
Attached
Detach File
Event Timeline
Log In to Comment