Date: Fri, 10 Jun 2016 14:51:11 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r301793 - stable/10/contrib/atf/atf-c/detail Message-ID: <201606101451.u5AEpBC5049178@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606101451.u5AEpBC5049178>