]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
atf map: Fix double-free in low memory error path
authorcem <cem@FreeBSD.org>
Wed, 11 May 2016 23:39:39 +0000 (23:39 +0000)
committercem <cem@FreeBSD.org>
Wed, 11 May 2016 23:39:39 +0000 (23:39 +0000)
commitb085e42af010174e13eeff51f0ace89eca34e8eb
tree361c730c36d19d43037ff66b67a1f02612460357
parent2bcae162c5c82322e1d0a8c205a96505ca3367b1
atf map: Fix double-free in low memory error path

If atf_list_append(, X, ) fails, X is freed.  Don't free it again.

If anyone wants to walk this patch upstream, be my guest.  I literally cannot
upstream it myself due to Google's stupid CLA.

Reported by: Coverity
CID: 979936
Sponsored by: EMC / Isilon Storage Division
contrib/atf/atf-c/detail/map.c