diff options
author | Dmitri Pal <dpal@redhat.com> | 2011-01-04 15:34:27 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-01-17 07:44:37 -0500 |
commit | 5db8f8695e2f2ed1d35879831fdcf14b24d5d3ca (patch) | |
tree | 82e440f0b5454c958a6ec5c7347622dbe6120fe3 | |
parent | 449b6da753cc4912778905eebe4c03cd9b154d9a (diff) | |
download | ding-libs-5db8f8695e2f2ed1d35879831fdcf14b24d5d3ca.tar.gz ding-libs-5db8f8695e2f2ed1d35879831fdcf14b24d5d3ca.tar.xz ding-libs-5db8f8695e2f2ed1d35879831fdcf14b24d5d3ca.zip |
Coverity issue 10042
Previous fix was not complete. New scan revealed
potential memory leak in case of coding error.
Low severity but still a bug...
-rw-r--r-- | ini/ini_comment.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ini/ini_comment.c b/ini/ini_comment.c index ea9ff5e..a767a65 100644 --- a/ini/ini_comment.c +++ b/ini/ini_comment.c @@ -433,6 +433,7 @@ static int ini_comment_modify(struct ini_comment *ic, default : TRACE_ERROR_STRING("Coding error", ""); + simplebuffer_free(elem); return EINVAL; } |