From 3bcf96dd0177d2536cf7075ada9ea80643cdd19f Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 4 Aug 2022 11:53:02 -0700 Subject: [PATCH] dependency: zero list after freeing --- libpkgconf/dependency.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpkgconf/dependency.c b/libpkgconf/dependency.c index 49856b3..149d95b 100644 --- a/libpkgconf/dependency.c +++ b/libpkgconf/dependency.c @@ -279,6 +279,8 @@ pkgconf_dependency_free(pkgconf_list_t *list) pkgconf_node_delete(&dep->iter, list); pkgconf_dependency_unref(dep->owner, dep); } + + pkgconf_list_zero(list); } /*