diff options
author | pfg <pfg@FreeBSD.org> | 2015-04-22 22:23:56 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-04-22 22:23:56 +0000 |
commit | 848d56ad43c9c07400271f412fb21883fc5cd3d9 (patch) | |
tree | 635f3e456dbba4986819fa7514460d8d50be218e /lib/libgeom | |
parent | fd9eaed2e2fa6b2e1bf952d19bf01d144d0e58a7 (diff) | |
download | FreeBSD-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/libgeom')
-rw-r--r-- | lib/libgeom/geom_xml2tree.c | 1 |
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; } |