diff options
author | ngie <ngie@FreeBSD.org> | 2016-06-10 14:51:11 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-06-10 14:51:11 +0000 |
commit | 34e3759025d203fb0d648f9a2765ffcab83a280c (patch) | |
tree | 8135b93af16b6607eca718666f71e631f3f4fb57 | |
parent | 12a9f65ec7dc08f8f53bc3015b618fddddf49d71 (diff) | |
download | FreeBSD-src-34e3759025d203fb0d648f9a2765ffcab83a280c.zip FreeBSD-src-34e3759025d203fb0d648f9a2765ffcab83a280c.tar.gz |
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
-rw-r--r-- | contrib/atf/atf-c/detail/map.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/atf/atf-c/detail/map.c b/contrib/atf/atf-c/detail/map.c index 34aaae2..ae11a44 100644 --- a/contrib/atf/atf-c/detail/map.c +++ b/contrib/atf/atf-c/detail/map.c @@ -360,7 +360,6 @@ atf_map_insert(atf_map_t *m, const char *key, void *value, bool managed) if (atf_is_error(err)) { if (managed) free(value); - free(me); } } } else { |