forked from ariadne/pkgconf
pkg: pkg_report_graph_error(): free pkg when exiting
parent
5122d5eecb
commit
6646e99a37
3
pkg.c
3
pkg.c
|
@ -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);
|
node->package, pkg->version, pkg_get_comparator(node), node->version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pkg != NULL)
|
||||||
|
pkg_free(pkg);
|
||||||
|
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue