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:
Evan Huus 2014-04-03 12:55:51 -04:00 committed by Anders Broman
parent 8db838ed1d
commit 131bba88c5
1 changed files with 6 additions and 0 deletions

View File

@ -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();
}