Fix some leaks detected by valgrind.

--HG--
extra : convert_revision : 15f7c0f673c4f46e36de82f5e55c7bcd370093e9
This commit is contained in:
Juan RP
2008-12-23 13:05:01 +01:00
parent 26c054d773
commit 0c0e796fc5
4 changed files with 28 additions and 12 deletions

View File

@@ -211,6 +211,7 @@ main(int argc, char **argv)
printf("Added repository at %s (%s) with %ju packages.\n",
rinfo->location_local, rinfo->index_version,
rinfo->total_pkgs);
prop_object_release(dict);
free(rinfo);
@@ -260,6 +261,7 @@ main(int argc, char **argv)
dict = getrepolist_dict();
if (!xbps_callback_array_iter_in_dict(dict, "repository-list",
xbps_show_pkg_info_from_repolist, argv[2])) {
prop_object_release(dict);
printf("ERROR: unable to locate package '%s'.\n",
argv[2]);
exit(EINVAL);