diff options
author | Aleš Matěj <amatej@redhat.com> | 2021-09-09 09:19:18 +0300 |
---|---|---|
committer | Aleš Matěj <amatej@redhat.com> | 2021-09-09 10:40:22 +0300 |
commit | fcf98f3051950f99c3c256f8d6aa31fa10b42506 (patch) | |
tree | 3023b2bd5f2f866e41a209952e12e19311cbe567 | |
parent | 8eff6ed99f5fd0ba844cb8513963435caab5fd3c (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; } |