commit | 07e227ed00d0fb787c06cf03069b2904e692e770 | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Thu Sep 07 18:55:46 2017 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Thu Sep 07 19:08:43 2017 +0200 |
tree | 8d6817de57382b2f05795430de6a54a72cdfd5df | |
parent | e2a9122b8dde53d320750451e9907a7dcb2ca8bb [diff] [blame] |
Fix memory leak in LZMA decompressor
diff --git a/xzlib.c b/xzlib.c index f43632b..8bafbd3 100644 --- a/xzlib.c +++ b/xzlib.c
@@ -797,6 +797,8 @@ xmlFree(state->in); } xmlFree(state->path); + if ((state->msg != NULL) && (state->err != LZMA_MEM_ERROR)) + xmlFree(state->msg); ret = close(state->fd); xmlFree(state); return ret ? ret : LZMA_OK;