bin: no point in cleaning up resources when it's exiting...

This commit is contained in:
Juan RP
2012-12-14 11:58:30 +01:00
parent 647aa0727f
commit e2176ec4b6
16 changed files with 65 additions and 224 deletions

View File

@ -138,7 +138,6 @@ list_orphans(struct xbps_handle *xhp)
prop_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver);
printf("%s\n", pkgver);
}
prop_object_iterator_release(iter);
return 0;
}

View File

@ -260,6 +260,5 @@ main(int argc, char **argv)
}
}
xbps_end(&xh);
exit(rv);
}

View File

@ -64,7 +64,6 @@ show_pkg_revdeps(struct xbps_handle *xhp, const char *pkg)
prop_array_get_cstring_nocopy(reqby, i, &pkgdep);
printf("%s\n", pkgdep);
}
prop_object_release(reqby);
}
return 0;
}

View File

@ -171,7 +171,6 @@ show_pkg_info(prop_dictionary_t dict)
print_value_obj(keyname, obj, NULL, false);
}
prop_object_release(all_keys);
}
int
@ -210,7 +209,6 @@ show_pkg_files(prop_dictionary_t filesd)
printf("\n");
}
}
prop_object_release(allkeys);
return 0;
}
@ -286,7 +284,6 @@ int
repo_show_pkg_files(struct xbps_handle *xhp, const char *pkg)
{
prop_dictionary_t pkgd;
int rv;
pkgd = xbps_rpool_get_pkg_plist(xhp, pkg, "./files.plist");
if (pkgd == NULL) {
@ -297,8 +294,5 @@ repo_show_pkg_files(struct xbps_handle *xhp, const char *pkg)
}
}
rv = show_pkg_files(pkgd);
prop_object_release(pkgd);
return rv;
return show_pkg_files(pkgd);
}