Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Rohel <jrohel@redhat.com>2021-05-06 20:09:19 +0300
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>2021-05-08 17:21:57 +0300
commit1ec1e767e4a48bc2c1d09b52da9e749352f8d925 (patch)
treedf1bf50b2235ce36424162845c1cc14e67b595c1
parent410ae77383086a3b599eb98399eb5c66abd95fc9 (diff)
Fix: cr_compress_file_with_stat: Memory leak
-rw-r--r--src/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c
index e5350ac..59c04e6 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -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;
}