aboutsummaryrefslogtreecommitdiff
path: root/src/xz/main.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-04-05 15:13:29 +0300
committerLasse Collin <lasse.collin@tukaani.org>2011-04-05 15:13:29 +0300
commit1ef3cf44a8eb9512480af4482a5232ea08363b14 (patch)
tree248727b8e434c8b0a3aa94f2756179e31fe0812f /src/xz/main.c
parentliblzma: Fix a memory leak in stream_encoder.c. (diff)
downloadxz-1ef3cf44a8eb9512480af4482a5232ea08363b14.tar.xz
xz: Call lzma_end(&strm) before exiting if debugging is enabled.
Diffstat (limited to '')
-rw-r--r--src/xz/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xz/main.c b/src/xz/main.c
index 8196c6e7..4e5b49e5 100644
--- a/src/xz/main.c
+++ b/src/xz/main.c
@@ -275,6 +275,10 @@ main(int argc, char **argv)
list_totals();
}
+#ifndef NDEBUG
+ coder_free();
+#endif
+
// If we have got a signal, raise it to kill the program instead
// of calling tuklib_exit().
signals_exit();