xbps_remove_pkg: fix a double free.
This commit is contained in:
parent
3357683215
commit
eb61aabca8
@ -348,7 +348,6 @@ purge:
|
|||||||
*/
|
*/
|
||||||
buf = xbps_xasprintf("%s/.%s.plist", xhp->metadir, pkgname);
|
buf = xbps_xasprintf("%s/.%s.plist", xhp->metadir, pkgname);
|
||||||
if (remove(buf) == -1) {
|
if (remove(buf) == -1) {
|
||||||
free(buf);
|
|
||||||
if (errno != ENOENT) {
|
if (errno != ENOENT) {
|
||||||
xbps_set_cb_state(xhp, XBPS_STATE_REMOVE_FAIL,
|
xbps_set_cb_state(xhp, XBPS_STATE_REMOVE_FAIL,
|
||||||
rv, pkgname, version,
|
rv, pkgname, version,
|
||||||
|
Loading…
Reference in New Issue
Block a user