Discussion:
NSPR allocations not freed upon exit
Hal Duston
2016-07-19 20:29:42 UTC
Permalink
I have three proposed patches to remove each of three initialization
allocations that are not freed upon exit.

The first patch frees pr_exe_loadmap in linking/prlink.c. In bug
#96122, Wan-Teh Chang expressed concerns about it being referenced
elsewhere. The patch resolves this by setting it to NULL after freeing
it. This works as the reference checks for NULL before dereferencing
pr_exe_load_map.

The second patch frees the Table_List entries in misc/prerrortable.c.

The third patch frees _pr_tpd_destructors in threads/prtpd.c.

These patches are for 4.11, but they should easily apply against 4.12.

Thanks,
--
Hal Duston
***@gmail.com

Loading...