aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/core
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-09-27 18:10:31 +0200
committerDavid Robillard <d@drobilla.net>2020-09-27 18:10:31 +0200
commitde095162e5e71fd74453564e9efc9a3c43209116 (patch)
tree43931361940139692be177f6aceb24067b4192aa /lv2/core
parent4d4222c583f6169159bb9d02868488ea03569aad (diff)
downloadlv2-de095162e5e71fd74453564e9efc9a3c43209116.tar.xz
Fix leaked va_lists
Diffstat (limited to 'lv2/core')
-rw-r--r--lv2/core/lv2_util.h2
1 files changed, 2 insertions, 0 deletions
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;
}