aboutsummaryrefslogtreecommitdiff
path: root/lib/libgeom/geom_xml2tree.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2015-04-22 22:23:56 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2015-04-22 22:23:56 +0000
commite54379826ce0a52cd54f3946cd882d1e22fcf114 (patch)
tree635f3e456dbba4986819fa7514460d8d50be218e /lib/libgeom/geom_xml2tree.c
parentad6f36f84564256469d3abc10db3110eddcc7462 (diff)
downloadsrc-e54379826ce0a52cd54f3946cd882d1e22fcf114.tar.gz
src-e54379826ce0a52cd54f3946cd882d1e22fcf114.zip
libgeom: plug memory leak in EndElement.
CID: 1016696 Found by: Clang static checker MFC after: 1 week
Notes
Notes: svn path=/head/; revision=281875
Diffstat (limited to 'lib/libgeom/geom_xml2tree.c')
-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 d5d4f31fd858..2c23361b1666 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;
}