lib/transaction_shlibs.c: fix memleak

This commit is contained in:
Duncaen 2016-09-25 21:47:40 +02:00
parent 4797dee468
commit 797796e086

View File

@ -132,6 +132,7 @@ collect_shlibs(struct xbps_handle *xhp, xbps_array_t pkgs, bool req)
}
}
xbps_object_iterator_release(iter);
xbps_object_release(pd);
return d;
}
@ -176,6 +177,7 @@ xbps_transaction_shlibs(struct xbps_handle *xhp, xbps_array_t pkgs, xbps_array_t
xbps_object_release(array);
}
xbps_object_iterator_release(iter);
/* XXX: not possible to free shrequires without copying values */
xbps_object_release(shprovides);
return unmatched;