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:
@@ -25,6 +25,7 @@ void _STR_PRINT_ARG(const char *fmt, char** refbufp, int *nbytes, int *memsize,
|
|||||||
*memsize += (*memsize + *memsize) / 3 + guess;
|
*memsize += (*memsize + *memsize) / 3 + guess;
|
||||||
*refbufp = (char*)realloc((void*)*refbufp, *memsize);
|
*refbufp = (char*)realloc((void*)*refbufp, *memsize);
|
||||||
}
|
}
|
||||||
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
string _STR(const char *fmt, int nfmts, ...) {
|
string _STR(const char *fmt, int nfmts, ...) {
|
||||||
|
|||||||
Reference in New Issue
Block a user