mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
plist.c: fix a leak.
--HG-- extra : convert_revision : 171210c3073d197c2ae3f1f0545bc9b95a6a5484
This commit is contained in:
parent
13a05a18b9
commit
1741d889bc
1 changed files with 6 additions and 1 deletions
|
@ -219,12 +219,17 @@ xbps_remove_pkg_dict_from_file(const char *pkg, const char *plist)
|
||||||
}
|
}
|
||||||
|
|
||||||
prop_object_iterator_release(iter);
|
prop_object_iterator_release(iter);
|
||||||
|
prop_object_release(pdict);
|
||||||
errno = ENODEV;
|
errno = ENODEV;
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
wr_plist:
|
wr_plist:
|
||||||
if (!prop_dictionary_externalize_to_file(pdict, plist))
|
if (!prop_dictionary_externalize_to_file(pdict, plist)) {
|
||||||
|
prop_object_release(pdict);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
prop_object_release(pdict);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue