From 0d1e5abc4168c0e6a12cdfa57c970ec5bfe5f3d8 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 12 Jun 2020 17:33:08 +0200 Subject: [PATCH] cgen: call va_end() in _str() --- vlib/v/gen/str.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/gen/str.v b/vlib/v/gen/str.v index 9890d7bdaa..50df270911 100644 --- a/vlib/v/gen/str.v +++ b/vlib/v/gen/str.v @@ -25,6 +25,7 @@ void _STR_PRINT_ARG(const char *fmt, char** refbufp, int *nbytes, int *memsize, *memsize += (*memsize + *memsize) / 3 + guess; *refbufp = (char*)realloc((void*)*refbufp, *memsize); } + va_end(args); } string _STR(const char *fmt, int nfmts, ...) {