Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178315428
D59387.1796486409.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
572 B
Referenced Files
None
Subscribers
None
D59387.1796486409.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
Sat, Dec 5, 4:00 PM (19 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42234570
Default Alt Text
D59387.1796486409.diff (572 B)
Attached To
Mode
D59387: net/if: Fix ifa memory leak during vnet removal
Attached
Detach File
Event Timeline