aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-29 13:20:44 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-29 13:20:44 -0400
commitbabecb3ca3b88fc5ae25ddc4fab2e88ba9cbc3e2 (patch)
tree904a2aaf55f6b08364946d9508fb749a7f524668
parent525ffee8adc9df289dd6eb4b65f70a2bb75940c3 (diff)
downloadstasis-babecb3ca3b88fc5ae25ddc4fab2e88ba9cbc3e2.tar.gz
join: call va_end on error
-rw-r--r--src/lib/core/str.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/core/str.c b/src/lib/core/str.c
index 5be3aa4..ce5ec49 100644
--- a/src/lib/core/str.c
+++ b/src/lib/core/str.c
@@ -200,6 +200,7 @@ char *join_ex(char *separator, ...) {
argv = calloc(argc + 1, sizeof(char **));
if (argv == NULL) {
perror("join_ex calloc failed");
+ va_end(ap);
return NULL;
}