diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-02-17 12:58:40 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-02-17 12:58:40 +0200 |
commit | f3ca4fb48171b4bd0549fe67f302517135c465ff (patch) | |
tree | 27425de5d8c00d1f639c9fab577c90ce54704b8a /build | |
parent | 22392d2245df78ef13acd9f1a2d413c85c271432 (diff) | |
download | rpm-f3ca4fb48171b4bd0549fe67f302517135c465ff.tar.gz rpm-f3ca4fb48171b4bd0549fe67f302517135c465ff.tar.bz2 rpm-f3ca4fb48171b4bd0549fe67f302517135c465ff.zip |
Plug a silly memleak in processPackageFiles()
Diffstat (limited to 'build')
-rw-r--r-- | build/files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/files.c b/build/files.c index 6fbeddcca..be2bc27dc 100644 --- a/build/files.c +++ b/build/files.c @@ -1750,7 +1750,7 @@ static rpmRC processPackageFiles(rpmSpec spec, Package pkg, if (pkg->fileFile) { char *ffn; - ARGV_t filelists; + ARGV_t filelists = NULL; FILE *fd; argvSplit(&filelists, getStringBuf(pkg->fileFile), "\n"); @@ -1781,6 +1781,7 @@ static rpmRC processPackageFiles(rpmSpec spec, Package pkg, } (void) fclose(fd); } + argvFree(filelists); } /* Init the file list structure */ |