pkg: free packages constructed while walking the dependency graph

pull/15/head
William Pitcock 2012-05-06 20:39:26 -05:00
parent d99f3db88e
commit 29ca5b7eee
1 changed files with 2 additions and 0 deletions

2
pkg.c
View File

@ -461,6 +461,8 @@ pkg_walk_list(pkg_dependency_t *deplist,
return pkg_report_graph_error(pkgdep, node, eflags); return pkg_report_graph_error(pkgdep, node, eflags);
pkg_traverse(pkgdep, pkg_traverse_func, data, depth - 1, flags); pkg_traverse(pkgdep, pkg_traverse_func, data, depth - 1, flags);
pkg_free(pkgdep);
} }
} }