NSPR allocations not freed upon exit

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

NSPR allocations not freed upon exit

Hal Duston
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
[hidden email]

_______________________________________________
dev-tech-nspr mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-nspr

nspr-loadmap-memleak.patch (441 bytes) Download Attachment
nspr-errortable-memleak.patch (4K) Download Attachment
nspr-tpd-memleak.patch (746 bytes) Download Attachment