projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22392d2
)
Plug a silly memleak in processPackageFiles()
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 17 Feb 2010 10:58:40 +0000
(12:58 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 17 Feb 2010 10:58:40 +0000
(12:58 +0200)
build/files.c
patch
|
blob
|
history
diff --git
a/build/files.c
b/build/files.c
index
6fbeddc
..
be2bc27
100644
(file)
--- 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 */