diff --git a/app/uzlib/uzlib_deflate.c b/app/uzlib/uzlib_deflate.c index f393da33..07534195 100644 --- a/app/uzlib/uzlib_deflate.c +++ b/app/uzlib/uzlib_deflate.c @@ -568,7 +568,6 @@ int uzlib_compress (uchar **dest, uint *destLen, const uchar *src, uint srcLen) status = UZLIB_OK; } - FREE(dynamicTables); for (i=0; i<20;i++) DBG_PRINT("count %u = %u\n",i,debugCounts[i]); if (status == UZLIB_OK) { @@ -581,5 +580,7 @@ int uzlib_compress (uchar **dest, uint *destLen, const uchar *src, uint srcLen) FREE(oBuf->buffer); } + FREE(dynamicTables); + return status; }