diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 14:26:29 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 14:26:29 +0300 |
commit | e3e69b44e53c8631004a9624dc39748340316673 (patch) | |
tree | 09590483b4d9a4b3dba34f9202ccc2fec1ed955d /build/spec.c | |
parent | a43c15eadfbf18dd4df8d21415f1ef1a7c11f432 (diff) | |
download | librpm-tizen-e3e69b44e53c8631004a9624dc39748340316673.tar.gz librpm-tizen-e3e69b44e53c8631004a9624dc39748340316673.tar.bz2 librpm-tizen-e3e69b44e53c8631004a9624dc39748340316673.zip |
Return explicit NULL from various fooFree() functions everywhere
Diffstat (limited to 'build/spec.c')
-rw-r--r-- | build/spec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build/spec.c b/build/spec.c index a0749bfd0..0159c2077 100644 --- a/build/spec.c +++ b/build/spec.c @@ -167,7 +167,8 @@ static inline speclines freeSl(speclines sl) for (i = 0; i < sl->sl_nlines; i++) sl->sl_lines[i] = _free(sl->sl_lines[i]); sl->sl_lines = _free(sl->sl_lines); - return _free(sl); + _free(sl); + return NULL; } /** @@ -182,7 +183,8 @@ static inline spectags freeSt(spectags st) t->t_msgid = _free(t->t_msgid); } st->st_t = _free(st->st_t); - return _free(st); + _free(st); + return NULL; } rpmSpec newSpec(void) |