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:
authorAleš Matěj <amatej@redhat.com>2021-09-09 09:19:18 +0300
committerAleš Matěj <amatej@redhat.com>2021-09-09 10:40:22 +0300
commitfcf98f3051950f99c3c256f8d6aa31fa10b42506 (patch)
tree3023b2bd5f2f866e41a209952e12e19311cbe567
parent8eff6ed99f5fd0ba844cb8513963435caab5fd3c (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;
}