From 52dee220ee6e8c7a25484954a6efcbd61ef103cd Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 11 May 2012 21:20:00 -0500 Subject: [PATCH] pkg: plug memory leak in conflicts code --- pkg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg.c b/pkg.c index 62421be..161c77a 100644 --- a/pkg.c +++ b/pkg.c @@ -635,6 +635,8 @@ pkg_walk_conflicts_list(pkg_t *root, pkg_dependency_t *deplist, unsigned int fla fprintf(stderr, "It may be possible to ignore this conflict and continue, try the\n"); fprintf(stderr, "PKG_CONFIG_IGNORE_CONFLICTS environment variable.\n"); + pkg_free(pkgdep); + return PKG_ERRF_PACKAGE_CONFLICT; }