pkg: pkg_report_graph_error(): free pkg when exiting

feature/tap-sh
William Pitcock 2012-05-06 21:30:35 -05:00
parent 5122d5eecb
commit 6646e99a37
1 changed files with 3 additions and 0 deletions

3
pkg.c
View File

@ -457,6 +457,9 @@ pkg_report_graph_error(pkg_t *pkg, pkg_dependency_t *node, unsigned int eflags)
node->package, pkg->version, pkg_get_comparator(node), node->version);
}
if (pkg != NULL)
pkg_free(pkg);
exit(EXIT_FAILURE);
}