Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ elzma_compress_free(elzma_compress_handle * hand)
(ISzAlloc *) &((*hand)->allocStruct),
(ISzAlloc *) &((*hand)->allocStruct));
}

free(*hand);

}
*hand = NULL;
Expand Down
2 changes: 2 additions & 0 deletions test/easylzma_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ static int roundTripTest(elzma_file_format format)
free(decompressed);
return 1;
}

free(decompressed);

return ELZMA_E_OK;
}
Expand Down
6 changes: 5 additions & 1 deletion test/simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ simpleCompress(elzma_file_format format, const unsigned char * inData,
*outData = ds.outData;
*outLen = ds.outLen;
}


elzma_compress_free(&hand);

return rc;
}

Expand Down Expand Up @@ -137,5 +139,7 @@ simpleDecompress(elzma_file_format format, const unsigned char * inData,
*outLen = ds.outLen;
}

elzma_decompress_free(&hand);

return rc;
}