From 848d56ad43c9c07400271f412fb21883fc5cd3d9 Mon Sep 17 00:00:00 2001 From: pfg Date: Wed, 22 Apr 2015 22:23:56 +0000 Subject: libgeom: plug memory leak in EndElement. CID: 1016696 Found by: Clang static checker MFC after: 1 week --- lib/libgeom/geom_xml2tree.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libgeom') 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; } -- cgit v1.1