svn commit: r301793 - stable/10/contrib/atf/atf-c/detail

Garrett Cooper ngie at FreeBSD.org
Fri Jun 10 14:51:12 UTC 2016


Author: ngie
Date: Fri Jun 10 14:51:11 2016
New Revision: 301793
URL: https://svnweb.freebsd.org/changeset/base/301793

Log:
  MFC r299496:
  r299496 (by cem):
  
  atf map: Fix double-free in low memory error path
  
  If atf_list_append(, X, ) fails, X is freed.  Don't free it again.
  
  CID:		979936

Modified:
  stable/10/contrib/atf/atf-c/detail/map.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/atf/atf-c/detail/map.c
==============================================================================
--- stable/10/contrib/atf/atf-c/detail/map.c	Fri Jun 10 14:48:10 2016	(r301792)
+++ stable/10/contrib/atf/atf-c/detail/map.c	Fri Jun 10 14:51:11 2016	(r301793)
@@ -360,7 +360,6 @@ atf_map_insert(atf_map_t *m, const char 
             if (atf_is_error(err)) {
                 if (managed)
                     free(value);
-                free(me);
             }
         }
     } else {


More information about the svn-src-stable mailing list