svn commit: r281875 - head/lib/libgeom

Pedro F. Giffuni pfg at FreeBSD.org
Wed Apr 22 22:23:57 UTC 2015


Author: pfg
Date: Wed Apr 22 22:23:56 2015
New Revision: 281875
URL: https://svnweb.freebsd.org/changeset/base/281875

Log:
  libgeom: plug memory leak in EndElement.
  
  CID:		1016696
  Found by:	Clang static checker
  MFC after:	1 week

Modified:
  head/lib/libgeom/geom_xml2tree.c

Modified: head/lib/libgeom/geom_xml2tree.c
==============================================================================
--- head/lib/libgeom/geom_xml2tree.c	Wed Apr 22 22:02:27 2015	(r281874)
+++ head/lib/libgeom/geom_xml2tree.c	Wed Apr 22 22:23:56 2015	(r281875)
@@ -257,6 +257,7 @@ EndElement(void *userData, const char *n
 
 	if (!strcmp(name, "config")) {
 		mt->config = NULL;
+		free(p);
 		return;
 	}
 


More information about the svn-src-all mailing list