From f5f25a5ff430b407dbd8506c0a8fbe795e8b5476 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 2 Feb 2016 11:51:26 +0100 Subject: [PATCH] xbps_symlink_target: fix a double free. --- lib/util.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/util.c b/lib/util.c index a78914dc..9889f261 100644 --- a/lib/util.c +++ b/lib/util.c @@ -499,8 +499,6 @@ xbps_symlink_target(struct xbps_handle *xhp, const char *path, const char *tgt) res = strdup(p1 + strlen(xhp->rootdir)); free(p1); } - assert(res); - free(p); } if (res == NULL) { if (strcmp(xhp->rootdir, "/") == 0) {