summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-03-27 13:44:46 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-04-03 14:38:40 +0300
commit815bd0bd3775334fc5f92274aa138e0909f4f5cb (patch)
treef141eec4730414970f0d624c949a54a87a83c646
parent7b5b426398ff9d63f01a877fa39b97f9abf21fe7 (diff)
downloadrpm-815bd0bd3775334fc5f92274aa138e0909f4f5cb.tar.gz
rpm-815bd0bd3775334fc5f92274aa138e0909f4f5cb.tar.bz2
rpm-815bd0bd3775334fc5f92274aa138e0909f4f5cb.zip
Plug minor memleak from rpmGetCwd() on build
(cherry picked from commit b2e85dae836e9695e4ef3e83c819b3523ae81634)
-rw-r--r--build.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.c b/build.c
index 48e579d61..193fe509b 100644
--- a/build.c
+++ b/build.c
@@ -219,6 +219,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
char *cwd = rpmGetCwd();
char *s = NULL;
rasprintf(&s, "%s/%s", cwd, arg);
+ free(cwd);
free(specFile);
specFile = s;
}