From 38ac1d1d766ed26fd8c41c359a9802bbfc47af9f Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Sat, 17 Jun 2017 11:03:30 +0530 Subject: [PATCH] search: Fix memory leak The container returned by g_variant_get_strv() should be freed with g_free(). https://bugzilla.gnome.org/show_bug.cgi?id=783885 --- panels/search/cc-search-locations-dialog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panels/search/cc-search-locations-dialog.c b/panels/search/cc-search-locations-dialog.c index 1890764e6..6d268df74 100644 --- a/panels/search/cc-search-locations-dialog.c +++ b/panels/search/cc-search-locations-dialog.c @@ -374,6 +374,8 @@ switch_tracker_get_mapping (GValue *value, break; } + g_free (locations); + g_value_set_boolean (value, found); return TRUE; }