1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: call va_end() in _str()

This commit is contained in:
Alexander Medvednikov 2020-06-12 17:33:08 +02:00
parent 7750ce5f60
commit 0d1e5abc41

View File

@ -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, ...) {