xbps-pkgdb: fixed some memleaks.

This commit is contained in:
Juan RP
2012-12-14 06:04:58 +01:00
parent a0443fc4ce
commit 338c0d549f
3 changed files with 12 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ check_pkg_files(struct xbps_handle *xhp, const char *pkgname, void *arg)
prop_dictionary_get_cstring_nocopy(obj,
"sha256", &sha256);
rv = xbps_file_hash_check(path, sha256);
free(path);
switch (rv) {
case 0:
break;
@@ -93,7 +94,6 @@ check_pkg_files(struct xbps_handle *xhp, const char *pkgname, void *arg)
pkgname, file, strerror(rv));
break;
}
free(path);
}
prop_object_iterator_release(iter);
}