]> sigrok.org Git - libsigrok.git/commitdiff
scpi-dmm: fix glib variant ref count in SET MQ request
authorGerhard Sittig <redacted>
Mon, 16 Dec 2019 10:26:56 +0000 (11:26 +0100)
committerUwe Hermann <redacted>
Sat, 2 May 2020 15:01:39 +0000 (17:01 +0200)
src/hardware/scpi-dmm/api.c

index 1b62fb4385dcb11e045d10fcbf81379e16136f01..8a432d8f8a2e3c93c3724f2701f81c56b8768ead 100644 (file)
@@ -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);