From: Gerhard Sittig Date: Mon, 16 Dec 2019 10:26:56 +0000 (+0100) Subject: scpi-dmm: fix glib variant ref count in SET MQ request X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ff5fb18526b33856c468b4098da40fac1546a60a;p=libsigrok.git scpi-dmm: fix glib variant ref count in SET MQ request --- diff --git a/src/hardware/scpi-dmm/api.c b/src/hardware/scpi-dmm/api.c index 1b62fb43..8a432d8f 100644 --- a/src/hardware/scpi-dmm/api.c +++ b/src/hardware/scpi-dmm/api.c @@ -280,6 +280,7 @@ static int config_set(uint32_t key, GVariant *data, case SR_CONF_MEASURED_QUANTITY: tuple_child = g_variant_get_child_value(data, 0); mq = g_variant_get_uint32(tuple_child); + g_variant_unref(tuple_child); tuple_child = g_variant_get_child_value(data, 1); mqflag = g_variant_get_uint64(tuple_child); g_variant_unref(tuple_child);