From 15ab86c90dc845a84e45ce67c574c2eb66732294 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 15 Nov 2015 09:23:51 +0100 Subject: [PATCH] alternatives: fix a double free in error path. --- lib/package_alternatives.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/package_alternatives.c b/lib/package_alternatives.c index c8763309..08a8e5b5 100644 --- a/lib/package_alternatives.c +++ b/lib/package_alternatives.c @@ -193,7 +193,6 @@ create_symlinks(struct xbps_handle *xhp, xbps_array_t a, const char *grname) "dir '%s' for group '%s': %s\n", lnk, grname, strerror(errno)); free(tgt_dup); - free(tgt); free(lnk_dup); free(lnk); free(l);