Skip to content

Commit

Permalink
Merge pull request #255 from jmg-duarte/master
Browse files Browse the repository at this point in the history
Fix memory leak in lz4.frame.decompress
  • Loading branch information
jonathanunderwood committed Jul 24, 2022
2 parents a19f75d + 43fe65d commit 7937098
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lz4/frame/_frame.c
Expand Up @@ -1068,6 +1068,7 @@ __decompress(LZ4F_dctx * context, char * source, size_t source_size,
PyErr_Format (PyExc_RuntimeError,
"LZ4F_decompress failed with code: %s",
LZ4F_getErrorName (result));
PyMem_Free (destination);
return NULL;
}

Expand Down

0 comments on commit 7937098

Please sign in to comment.