svn commit: r282223 - stable/9/lib/libgeom

Pedro F. Giffuni pfg at FreeBSD.org
Wed Apr 29 15:28:05 UTC 2015


Author: pfg
Date: Wed Apr 29 15:28:04 2015
New Revision: 282223
URL: https://svnweb.freebsd.org/changeset/base/282223

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

Modified:
  stable/9/lib/libgeom/geom_xml2tree.c
Directory Properties:
  stable/9/lib/libgeom/   (props changed)

Modified: stable/9/lib/libgeom/geom_xml2tree.c
==============================================================================
--- stable/9/lib/libgeom/geom_xml2tree.c	Wed Apr 29 15:26:58 2015	(r282222)
+++ stable/9/lib/libgeom/geom_xml2tree.c	Wed Apr 29 15:28:04 2015	(r282223)
@@ -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-stable-9 mailing list