diff options
author | jbj <devnull@localhost> | 2001-05-23 14:25:19 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-05-23 14:25:19 +0000 |
commit | 71f818828ed608b895896670f15437ffc491b785 (patch) | |
tree | 98b5ba4dbe808c8c63b6c5fbc7f9efa5640824a4 /build/spec.c | |
parent | 0112602155b5500ba63e9874072c89d5241aec7a (diff) | |
download | librpm-tizen-71f818828ed608b895896670f15437ffc491b785.tar.gz librpm-tizen-71f818828ed608b895896670f15437ffc491b785.tar.bz2 librpm-tizen-71f818828ed608b895896670f15437ffc491b785.zip |
- headerFree() returns NULL, _free is C++ safe.
CVS patchset: 4807
CVS date: 2001/05/23 14:25:19
Diffstat (limited to 'build/spec.c')
-rw-r--r-- | build/spec.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/build/spec.c b/build/spec.c index 4159e7505..e5daf2226 100644 --- a/build/spec.c +++ b/build/spec.c @@ -153,8 +153,7 @@ Package freePackage(Package p) p->postUnFile = _free(p->postUnFile); p->verifyFile = _free(p->verifyFile); - headerFree(p->header); - p->header = NULL; + p->header = headerFree(p->header); p->fileList = freeStringBuf(p->fileList); p->fileFile = _free(p->fileFile); if (p->cpioList) { @@ -490,10 +489,7 @@ Spec freeSpec(Spec spec) rl = _free(rl); } - if (spec->sourceHeader != NULL) { - headerFree(spec->sourceHeader); - spec->sourceHeader = NULL; - } + spec->sourceHeader = headerFree(spec->sourceHeader); if (spec->sourceCpioList) { TFI_t fi = spec->sourceCpioList; @@ -502,8 +498,7 @@ Spec freeSpec(Spec spec) fi = _free(fi); } - headerFree(spec->buildRestrictions); - spec->buildRestrictions = NULL; + spec->buildRestrictions = headerFree(spec->buildRestrictions); if (!spec->recursing) { if (spec->BASpecs != NULL) |