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;
        }
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to