core: examine memory pool for leak

Link: https://github.com/GeneAssembly/biosal/issues/788
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>