From ff3960696f450958e45b3fe7471564063996eeac Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 25 Oct 2014 08:08:04 +0200 Subject: [PATCH] lib/package_remove.c: fix a memleak. --- lib/package_remove.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/package_remove.c b/lib/package_remove.c index b782a862..67f13c71 100644 --- a/lib/package_remove.c +++ b/lib/package_remove.c @@ -122,6 +122,7 @@ symlink_target(struct xbps_handle *xhp, const char *path) dname += strlen(xhp->rootdir) + 1; res = xbps_xasprintf("%s/%s", dname, lnk); free(lnk); + free(p); } else { /* absolute */ res = lnk;