From eb61aabca870a53e0bf574e79a23ae64ab1b40b8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 19 Feb 2013 14:58:56 +0100 Subject: [PATCH] xbps_remove_pkg: fix a double free. --- lib/package_remove.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/package_remove.c b/lib/package_remove.c index 78ddd7b0..9d039c5a 100644 --- a/lib/package_remove.c +++ b/lib/package_remove.c @@ -348,7 +348,6 @@ purge: */ buf = xbps_xasprintf("%s/.%s.plist", xhp->metadir, pkgname); if (remove(buf) == -1) { - free(buf); if (errno != ENOENT) { xbps_set_cb_state(xhp, XBPS_STATE_REMOVE_FAIL, rv, pkgname, version,