From 488991b0f6f6cca3cfc780407d99855477d7ae1b Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 9 Sep 2019 16:23:04 +0200 Subject: [PATCH] xprops: Free counter_list_from_results() return value with g_free() counter_list_from_results directly passes through the results->prop pointer which is g_malloc memory, so we should free the buffer it returns with g_free. https://gitlab.gnome.org/GNOME/mutter/merge_requests/786 --- src/x11/xprops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/xprops.c b/src/x11/xprops.c index 9e66fd5adf..3632877da1 100644 --- a/src/x11/xprops.c +++ b/src/x11/xprops.c @@ -1109,7 +1109,7 @@ free_value (MetaPropValue *value) case META_PROP_VALUE_SYNC_COUNTER: break; case META_PROP_VALUE_SYNC_COUNTER_LIST: - free (value->v.xcounter_list.counters); + g_free (value->v.xcounter_list.counters); break; } } -- GitLab