diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-05-24 13:47:25 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-05-24 14:02:37 +0300 |
commit | f444e21be0bc644254c5f59310de3cbdbe924f1a (patch) | |
tree | b769b7bc005131383ba45d0b6b99b3d0da4e3737 /lib/header.c | |
parent | 78a6cf6fbf047c5bf0066df21792e4c9925d04a0 (diff) | |
download | librpm-tizen-f444e21be0bc644254c5f59310de3cbdbe924f1a.tar.gz librpm-tizen-f444e21be0bc644254c5f59310de3cbdbe924f1a.tar.bz2 librpm-tizen-f444e21be0bc644254c5f59310de3cbdbe924f1a.zip |
Return explicit NULL on errors + frees in header code
Diffstat (limited to 'lib/header.c')
-rw-r--r-- | lib/header.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/header.c b/lib/header.c index a7d2a9672..a777f07b7 100644 --- a/lib/header.c +++ b/lib/header.c @@ -151,7 +151,7 @@ Header headerFree(Header h) } h = _free(h); - return h; + return NULL; } static Header headerCreate(void *blob, int32_t indexLen) @@ -703,7 +703,7 @@ static void * doHeaderUnload(Header h, errxit: ei = _free(ei); - return (void *) ei; + return NULL; } void * headerUnload(Header h) @@ -914,7 +914,7 @@ errxit: h->index = _free(h->index); h = _free(h); } - return h; + return NULL; } Header headerReload(Header h, rpmTagVal tag) @@ -1693,7 +1693,7 @@ HeaderIterator headerFreeIterator(HeaderIterator hi) hi->h = headerFree(hi->h); hi = _free(hi); } - return hi; + return NULL; } HeaderIterator headerInitIterator(Header h) |