lib/package_remove.c: fix a memleak.
This commit is contained in:
parent
e75beec76f
commit
ff3960696f
@ -122,6 +122,7 @@ symlink_target(struct xbps_handle *xhp, const char *path)
|
|||||||
dname += strlen(xhp->rootdir) + 1;
|
dname += strlen(xhp->rootdir) + 1;
|
||||||
res = xbps_xasprintf("%s/%s", dname, lnk);
|
res = xbps_xasprintf("%s/%s", dname, lnk);
|
||||||
free(lnk);
|
free(lnk);
|
||||||
|
free(p);
|
||||||
} else {
|
} else {
|
||||||
/* absolute */
|
/* absolute */
|
||||||
res = lnk;
|
res = lnk;
|
||||||
|
Loading…
Reference in New Issue
Block a user