[gnome-software/gnome-3-30] packagekit: Fix a leak when resolving packages
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-30] packagekit: Fix a leak when resolving packages
- Date: Tue, 16 Oct 2018 12:03:30 +0000 (UTC)
commit 457b2c785c06e968d1f334ea6f088d1ad490048d
Author: Kalev Lember <klember redhat com>
Date: Fri Oct 12 14:57:52 2018 +0200
packagekit: Fix a leak when resolving packages
plugins/packagekit/gs-plugin-packagekit-refine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit-refine.c
b/plugins/packagekit/gs-plugin-packagekit-refine.c
index 5c0695a6..a329cfcf 100644
--- a/plugins/packagekit/gs-plugin-packagekit-refine.c
+++ b/plugins/packagekit/gs-plugin-packagekit-refine.c
@@ -160,7 +160,7 @@ gs_plugin_packagekit_resolve_packages (GsPlugin *plugin,
GError **error)
{
PkBitfield filter;
- GsAppList *resolve2_list;
+ g_autoptr(GsAppList) resolve2_list = NULL;
/* first, try to resolve packages with ARCH filter */
filter = pk_bitfield_from_enums (PK_FILTER_ENUM_NEWEST,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]