Module Name: src Committed By: ozaki-r Date: Thu Dec 17 02:38:33 UTC 2015
Modified Files: src/sys/net: if_llatbl.h src/sys/netinet: if_arp.c Log Message: Fix memory leak of llentry#la_opaque llentry#la_opaque which is for token ring is allocated in arp.c and freed in arp.c when freeing llentry. However, llentry can be freed from other places, e.g., lltable_free. In such cases, la_opaque is never freed. To fix that, add a new callback (lle_ll_free) to llentry and register a destruction function of la_opque to it. On freeing a llentry, we can surely free la_opque via the callback. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/net/if_llatbl.h cvs rdiff -u -r1.197 -r1.198 src/sys/netinet/if_arp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.