lib/package_remove.c: fix a memleak.

This commit is contained in:
Juan RP 2014-10-25 08:08:04 +02:00
parent e75beec76f
commit ff3960696f

View File

@ -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;