forked from osmocom/wireshark
Remember to destroy the pinfo pool cache
Otherwise a library reinitialization leaks at least one large 8MB chunk. Change-Id: I5336fef5925eb54e88a72f1a16fc0ddf77ae6c10 Reviewed-on: https://code.wireshark.org/review/945 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
8db838ed1d
commit
131bba88c5
|
@ -146,6 +146,12 @@ epan_cleanup(void)
|
|||
#endif
|
||||
except_deinit();
|
||||
addr_resolv_cleanup();
|
||||
|
||||
if (pinfo_pool_cache != NULL) {
|
||||
wmem_destroy_allocator(pinfo_pool_cache);
|
||||
pinfo_pool_cache = NULL;
|
||||
}
|
||||
|
||||
wmem_cleanup();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue