summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-04-22 22:23:56 +0000
committerpfg <pfg@FreeBSD.org>2015-04-22 22:23:56 +0000
commit848d56ad43c9c07400271f412fb21883fc5cd3d9 (patch)
tree635f3e456dbba4986819fa7514460d8d50be218e /lib
parentfd9eaed2e2fa6b2e1bf952d19bf01d144d0e58a7 (diff)
downloadFreeBSD-src-848d56ad43c9c07400271f412fb21883fc5cd3d9.zip
FreeBSD-src-848d56ad43c9c07400271f412fb21883fc5cd3d9.tar.gz
libgeom: plug memory leak in EndElement.
CID: 1016696 Found by: Clang static checker MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libgeom/geom_xml2tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c
index d5d4f31..2c23361 100644
--- a/lib/libgeom/geom_xml2tree.c
+++ b/lib/libgeom/geom_xml2tree.c
@@ -257,6 +257,7 @@ EndElement(void *userData, const char *name)
if (!strcmp(name, "config")) {
mt->config = NULL;
+ free(p);
return;
}
OpenPOWER on IntegriCloud