summaryrefslogtreecommitdiff
path: root/build/parsePrep.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-11-17 15:54:38 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-11-17 15:54:38 +0200
commit3f5c10e9f6eb91bdfb8909c0e5e75a019315ccbf (patch)
tree980e35ab4d4b9797b7edc50e8fc1f7ce8e81d4e7 /build/parsePrep.c
parent319a04d74ace9bffc0042e13497b257cfd7a5d46 (diff)
downloadrpm-3f5c10e9f6eb91bdfb8909c0e5e75a019315ccbf.tar.gz
rpm-3f5c10e9f6eb91bdfb8909c0e5e75a019315ccbf.tar.bz2
rpm-3f5c10e9f6eb91bdfb8909c0e5e75a019315ccbf.zip
Plug a minor memory leak in librpmbuild doPatch()
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r--build/parsePrep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c
index af31acd93..ac671cc48 100644
--- a/build/parsePrep.c
+++ b/build/parsePrep.c
@@ -103,7 +103,6 @@ static char *doPatch(rpmSpec spec, uint32_t c, int strip, const char *db,
patchcmd = rpmExpand("%{uncompress: ", fn, "} | %{__patch} ", args, NULL);
- free(arg_patch_flags);
free(arg_fuzz);
free(arg_dir);
free(arg_backup);
@@ -121,6 +120,7 @@ static char *doPatch(rpmSpec spec, uint32_t c, int strip, const char *db,
free(patchcmd);
exit:
+ free(arg_patch_flags);
free(fn);
return buf;
}