xbps-query: some minor memleaks found by valgrind.
This commit is contained in:
parent
7b3a500139
commit
ee9aa98a64
@ -1,5 +1,5 @@
|
|||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2008-2014 Juan Romero Pardines.
|
* Copyright (c) 2008-2015 Juan Romero Pardines.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -191,6 +191,7 @@ show_pkg_info(xbps_dictionary_t dict)
|
|||||||
/* anything else */
|
/* anything else */
|
||||||
print_value_obj(keyname, obj, NULL, bold, reset, false);
|
print_value_obj(keyname, obj, NULL, bold, reset, false);
|
||||||
}
|
}
|
||||||
|
xbps_object_release(all_keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -230,6 +231,7 @@ show_pkg_files(xbps_dictionary_t filesd)
|
|||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
xbps_object_release(allkeys);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -312,6 +314,7 @@ int
|
|||||||
repo_show_pkg_files(struct xbps_handle *xhp, const char *pkg)
|
repo_show_pkg_files(struct xbps_handle *xhp, const char *pkg)
|
||||||
{
|
{
|
||||||
xbps_dictionary_t pkgd;
|
xbps_dictionary_t pkgd;
|
||||||
|
int rv;
|
||||||
|
|
||||||
pkgd = xbps_rpool_get_pkg_plist(xhp, pkg, "/files.plist");
|
pkgd = xbps_rpool_get_pkg_plist(xhp, pkg, "/files.plist");
|
||||||
if (pkgd == NULL) {
|
if (pkgd == NULL) {
|
||||||
@ -321,5 +324,7 @@ repo_show_pkg_files(struct xbps_handle *xhp, const char *pkg)
|
|||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
return show_pkg_files(pkgd);
|
rv = show_pkg_files(pkgd);
|
||||||
|
xbps_object_release(pkgd);
|
||||||
|
return rv;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user