From: Frank Stettner Date: Sun, 3 May 2020 09:55:05 +0000 (+0200) Subject: hp-3478a: Fix glib variant ref count in SET MQ request. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=883db4dad1d37a0dbf8174e7559e2681f09d987c;p=libsigrok.git hp-3478a: Fix glib variant ref count in SET MQ request. --- diff --git a/src/hardware/hp-3478a/api.c b/src/hardware/hp-3478a/api.c index 69c1d711..cc5d4cb7 100644 --- a/src/hardware/hp-3478a/api.c +++ b/src/hardware/hp-3478a/api.c @@ -240,6 +240,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); mq_flags = g_variant_get_uint64(tuple_child); g_variant_unref(tuple_child);