summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-05-27 13:45:58 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-05-27 15:23:28 +0300
commit4df6fb0e2448628d001a2634d7f8d5013fbd777c (patch)
treee89d89855f44366174260892ea6cf1b93207fdfb /build
parentf67c08135711a92a3eebfe08eab00611ba9741d4 (diff)
downloadlibrpm-tizen-4df6fb0e2448628d001a2634d7f8d5013fbd777c.tar.gz
librpm-tizen-4df6fb0e2448628d001a2634d7f8d5013fbd777c.tar.bz2
librpm-tizen-4df6fb0e2448628d001a2634d7f8d5013fbd777c.zip
More dead NULL assignments of local variables in filelist processing
Diffstat (limited to 'build')
-rw-r--r--build/files.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/files.c b/build/files.c
index e98567c1f..be63790c6 100644
--- a/build/files.c
+++ b/build/files.c
@@ -1967,7 +1967,7 @@ rpmRC processSourceFiles(rpmSpec spec, rpmBuildPkgFlags pkgFlags)
char * sfn = rpmGetPath( ((srcPtr->flags & RPMBUILD_ISNO) ? "!" : ""),
"%{_sourcedir}/", srcPtr->source, NULL);
argvAdd(&files, sfn);
- sfn = _free(sfn);
+ free(sfn);
}
for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
@@ -1976,7 +1976,7 @@ rpmRC processSourceFiles(rpmSpec spec, rpmBuildPkgFlags pkgFlags)
sfn = rpmGetPath( ((srcPtr->flags & RPMBUILD_ISNO) ? "!" : ""),
"%{_sourcedir}/", srcPtr->source, NULL);
argvAdd(&files, sfn);
- sfn = _free(sfn);
+ free(sfn);
}
}
@@ -2104,8 +2104,8 @@ static int checkFiles(const char *buildRoot, StringBuf fileList)
}
exit:
- sb_stdout = freeStringBuf(sb_stdout);
- s = _free(s);
+ freeStringBuf(sb_stdout);
+ free(s);
return rc;
}