ref: 08bc90379a7bd5d8eead94ae872f6fc6cc93a6fb
parent: 017f11f142bdea0965f453d64a31ef02b3271cba
author: Shailesh Mistry <shailesh.mistry@hotmail.co.uk>
date: Tue Jun 5 12:39:39 EDT 2012
Bug 693025 : Correct memory leaks reported by Zeniko
--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -1016,9 +1016,10 @@
{
jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number,
"failed to allocate symbol array in symbol dictionary");
- jbig2_sd_release(ctx, *dicts);
+ jbig2_free(ctx->allocator, dicts);
goto cleanup;
}
+ jbig2_free(ctx->allocator, dicts);
}
if (params.SDINSYMS != NULL) {
params.SDNUMINSYMS = params.SDINSYMS->n_symbols;