aboutsummaryrefslogtreecommitdiff
path: root/contrib/atf/atf-c/detail/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/atf/atf-c/detail/list.c')
-rw-r--r--contrib/atf/atf-c/detail/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/atf/atf-c/detail/list.c b/contrib/atf/atf-c/detail/list.c
index d14216eb409f..7ac9f1fc948b 100644
--- a/contrib/atf/atf-c/detail/list.c
+++ b/contrib/atf/atf-c/detail/list.c
@@ -74,7 +74,7 @@ new_entry(void *object, bool managed)
le->m_prev = le->m_next = NULL;
le->m_object = object;
le->m_managed = managed;
- } else
+ } else if (managed)
free(object);
return le;