xbps_update_pkg_requiredby: fix a double free.

--HG--
extra : convert_revision : f821d215c3b97ca253ab1c170262d6bd9ae4f3fc
This commit is contained in:
Juan RP 2009-02-10 12:04:10 +01:00
parent 939a63036e
commit 3b419a365e

View File

@ -130,7 +130,6 @@ xbps_update_pkg_requiredby(prop_array_t regar, prop_dictionary_t pkg)
if (strcmp(rdepname, reqname) == 0) {
rv = add_pkg_into_requiredby(obj2, fpkgn);
if (rv != 0) {
free(fpkgn);
free(rdepname);
prop_object_iterator_release(iter2);
goto out;