summaryrefslogtreecommitdiffstats
path: root/src/dstring.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-24 11:17:29 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-24 11:17:29 -0400
commit03220724981ab4e4e2be239b65dec440f008f7da (patch)
treee284253afa412f78b63af2a8b6af1fb1e09bd119 /src/dstring.c
parentd597be5bc1ee0e76117037b7d9a52c52fd4531ad (diff)
downloadbfs-03220724981ab4e4e2be239b65dec440f008f7da.tar.xz
dstring: Add missing va_end() to dstrvcatf() error path
Diffstat (limited to 'src/dstring.c')
-rw-r--r--src/dstring.c1
1 files changed, 1 insertions, 0 deletions
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;
}