Plug a silly memleak in processPackageFiles()
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 17 Feb 2010 10:58:40 +0000 (12:58 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 17 Feb 2010 10:58:40 +0000 (12:58 +0200)
build/files.c

index 6fbeddc..be2bc27 100644 (file)
@@ -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 */