Commit 488991b0 authored by Hans de Goede's avatar Hans de Goede Committed by Jonas Ådahl

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.

!786
parent e2330617
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment