summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-05-27 15:38:54 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-05-27 15:38:54 +0300
commitcf75fec10b4fe9205e83a95bd923ec5348f6ea13 (patch)
treee2859c710c552b003f8692a7fbe1287e7269697c /build
parent5d73bbbc3c673c11cda60098e1a3370b581cf704 (diff)
downloadlibrpm-tizen-cf75fec10b4fe9205e83a95bd923ec5348f6ea13.tar.gz
librpm-tizen-cf75fec10b4fe9205e83a95bd923ec5348f6ea13.tar.bz2
librpm-tizen-cf75fec10b4fe9205e83a95bd923ec5348f6ea13.zip
Eliminate bunch of obvious dead NULL-assignments from rpm generation
Diffstat (limited to 'build')
-rw-r--r--build/pack.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/build/pack.c b/build/pack.c
index 5a0e84498..c354f9163 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -484,9 +484,9 @@ static rpmRC writeRPM(Header *hdrp, unsigned char ** pkgidp, const char *fileNam
rc = copyPayload(ifd, fileName, fd, sigtarget);
exit:
- rpmio_flags = _free(rpmio_flags);
- SHA1 = _free(SHA1);
- h = headerFree(h);
+ free(rpmio_flags);
+ free(SHA1);
+ headerFree(h);
/* XXX Fish the pkgid out of the signature header. */
if (sig != NULL && pkgidp != NULL) {
@@ -498,13 +498,13 @@ exit:
}
}
- sig = rpmFreeSignature(sig);
+ rpmFreeSignature(sig);
Fclose(ifd);
Fclose(fd);
if (sigtarget) {
(void) unlink(sigtarget);
- sigtarget = _free(sigtarget);
+ free(sigtarget);
}
if (rc == RPMRC_OK)
@@ -606,7 +606,7 @@ rpmRC packageBinaries(rpmSpec spec, const char *cookie, int cheating)
{ char * optflags = rpmExpand("%{optflags}", NULL);
headerPutString(pkg->header, RPMTAG_OPTFLAGS, optflags);
- optflags = _free(optflags);
+ free(optflags);
}
if (spec->sourcePkgId != NULL) {
@@ -644,9 +644,9 @@ rpmRC packageBinaries(rpmSpec spec, const char *cookie, int cheating)
break;
}
}
- dn = _free(dn);
+ free(dn);
}
- binRpm = _free(binRpm);
+ free(binRpm);
}
memset(csa, 0, sizeof(*csa));
@@ -661,11 +661,11 @@ rpmRC packageBinaries(rpmSpec spec, const char *cookie, int cheating)
if (pkgcheck[0] != ' ') {
rc = checkPackages(pkgcheck);
}
- pkgcheck = _free(pkgcheck);
+ free(pkgcheck);
rstrcat(&pkglist, fn);
rstrcat(&pkglist, " ");
}
- fn = _free(fn);
+ free(fn);
if (rc != RPMRC_OK) {
pkglist = _free(pkglist);
return rc;
@@ -678,7 +678,7 @@ rpmRC packageBinaries(rpmSpec spec, const char *cookie, int cheating)
if (pkgcheck_set[0] != ' ') { /* run only if _build_pkgcheck_set is defined */
checkPackages(pkgcheck_set);
}
- pkgcheck_set = _free(pkgcheck_set);
+ free(pkgcheck_set);
pkglist = _free(pkglist);
}
@@ -712,9 +712,9 @@ rpmRC packageSources(rpmSpec spec, char **cookie)
rc = checkPackages(pkgcheck);
}
- csa->cpioList = rpmfiFree(csa->cpioList);
- pkgcheck = _free(pkgcheck);
- fn = _free(fn);
+ rpmfiFree(csa->cpioList);
+ free(pkgcheck);
+ free(fn);
}
return rc;
}