From: Bert Vermeulen Date: Thu, 9 Jan 2014 15:48:17 +0000 (+0100) Subject: Don't leak GVariant. X-Git-Tag: sigrok-cli-0.5.0~47 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=be781321930917609d92b4446b894a1b8a23ce13;p=sigrok-cli.git Don't leak GVariant. --- diff --git a/session.c b/session.c index 6f90085..4a31c42 100644 --- a/session.c +++ b/session.c @@ -635,6 +635,7 @@ void run_session(void) /* The device has no compression, or compression is turned * off, and publishes its sample memory size. */ max_samples = g_variant_get_uint64(gvar); + g_variant_unref(gvar); if (limit_samples > max_samples) { g_critical("The device can store only %"PRIu64 " samples with the current settings.", max_samples);