summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2011-01-04 15:34:27 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-01-17 07:44:37 -0500
commit5db8f8695e2f2ed1d35879831fdcf14b24d5d3ca (patch)
tree82e440f0b5454c958a6ec5c7347622dbe6120fe3
parent449b6da753cc4912778905eebe4c03cd9b154d9a (diff)
downloadding-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.c1
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;
}