From 03220724981ab4e4e2be239b65dec440f008f7da Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 24 Apr 2024 11:17:29 -0400 Subject: dstring: Add missing va_end() to dstrvcatf() error path --- src/dstring.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/dstring.c b/src/dstring.c index 913dda8..b5bf3d3 100644 --- a/src/dstring.c +++ b/src/dstring.c @@ -245,6 +245,7 @@ int dstrvcatf(dchar **str, const char *format, va_list args) { return 0; fail: + va_end(copy); *tail = '\0'; return -1; } -- cgit v1.2.3