mirror of
https://github.com/gperftools/gperftools
synced 2025-01-03 13:12:02 +00:00
Added mising va_end() in TracePrintf function
Normally the va_end function does not do anything, but it should be called because some platforms need it. [alkondratenko@gmail.com: reworded commit message] Signed-off-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
This commit is contained in:
parent
497b60ef0f
commit
47efdd60f5
@ -889,6 +889,7 @@ static void TracePrintf(int fd, const char *fmt, ...) {
|
||||
const char *p = fmt;
|
||||
char numbuf[25];
|
||||
if (fd < 0) {
|
||||
va_end(ap);
|
||||
return;
|
||||
}
|
||||
numbuf[sizeof(numbuf)-1] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user