diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-03-27 13:44:46 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-04-03 14:38:40 +0300 |
commit | 815bd0bd3775334fc5f92274aa138e0909f4f5cb (patch) | |
tree | f141eec4730414970f0d624c949a54a87a83c646 | |
parent | 7b5b426398ff9d63f01a877fa39b97f9abf21fe7 (diff) | |
download | rpm-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |