diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-24 11:17:29 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-24 11:17:29 -0400 |
commit | 03220724981ab4e4e2be239b65dec440f008f7da (patch) | |
tree | e284253afa412f78b63af2a8b6af1fb1e09bd119 /src/dstring.c | |
parent | d597be5bc1ee0e76117037b7d9a52c52fd4531ad (diff) | |
download | bfs-03220724981ab4e4e2be239b65dec440f008f7da.tar.xz |
dstring: Add missing va_end() to dstrvcatf() error path
Diffstat (limited to 'src/dstring.c')
-rw-r--r-- | src/dstring.c | 1 |
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; } |