diff options
author | Jaroslav Rohel <jrohel@redhat.com> | 2021-05-06 20:09:19 +0300 |
---|---|---|
committer | Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com> | 2021-05-08 17:21:57 +0300 |
commit | 1ec1e767e4a48bc2c1d09b52da9e749352f8d925 (patch) | |
tree | df1bf50b2235ce36424162845c1cc14e67b595c1 | |
parent | 410ae77383086a3b599eb98399eb5c66abd95fc9 (diff) |
Fix: cr_compress_file_with_stat: Memory leak
-rw-r--r-- | src/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -503,6 +503,8 @@ cr_compress_file_with_stat(const char *src, if (!orig) { ret = tmp_err->code; g_propagate_prefixed_error(err, tmp_err, "Cannot open %s: ", src); + if (dst != in_dst) + g_free(dst); return ret; } |