From ff5fb18526b33856c468b4098da40fac1546a60a Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Mon, 16 Dec 2019 11:26:56 +0100 Subject: [PATCH] scpi-dmm: fix glib variant ref count in SET MQ request --- src/hardware/scpi-dmm/api.c | 1 + 1 file changed, 1 insertion(+) 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);