From de095162e5e71fd74453564e9efc9a3c43209116 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 Sep 2020 18:10:31 +0200 Subject: Fix leaked va_lists --- lv2/core/lv2_util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lv2/core') diff --git a/lv2/core/lv2_util.h b/lv2/core/lv2_util.h index 0792941..0269c70 100644 --- a/lv2/core/lv2_util.h +++ b/lv2/core/lv2_util.h @@ -86,10 +86,12 @@ lv2_features_query(const LV2_Feature* const* features, ...) *data = lv2_features_data(features, uri); if (required && !*data) { + va_end(args); return uri; } } + va_end(args); return NULL; } -- cgit v1.2.1