projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
319a04d
)
Plug a minor memory leak in librpmbuild doPatch()
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 17 Nov 2010 13:54:38 +0000
(15:54 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 17 Nov 2010 13:54:38 +0000
(15:54 +0200)
build/parsePrep.c
patch
|
blob
|
history
diff --git
a/build/parsePrep.c
b/build/parsePrep.c
index
af31acd
..
ac671cc
100644
(file)
--- 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;
}