diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-05 15:13:29 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-05 15:13:29 +0300 |
commit | 1ef3cf44a8eb9512480af4482a5232ea08363b14 (patch) | |
tree | 248727b8e434c8b0a3aa94f2756179e31fe0812f /src/xz/coder.c | |
parent | liblzma: Fix a memory leak in stream_encoder.c. (diff) | |
download | xz-1ef3cf44a8eb9512480af4482a5232ea08363b14.tar.xz |
xz: Call lzma_end(&strm) before exiting if debugging is enabled.
Diffstat (limited to '')
-rw-r--r-- | src/xz/coder.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xz/coder.c b/src/xz/coder.c index 5e5ed04c..c893f787 100644 --- a/src/xz/coder.c +++ b/src/xz/coder.c @@ -698,3 +698,13 @@ coder_run(const char *filename) return; } + + +#ifndef NDEBUG +extern void +coder_free(void) +{ + lzma_end(&strm); + return; +} +#endif |