mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-26 01:54:14 +01:00
Add missing va_end, from Thomas Jarosch.
This commit is contained in:
parent
32f1ceddc9
commit
3771ab7c67
@ -54,10 +54,12 @@ vasprintf(char **ret, const char *fmt, va_list ap)
|
||||
free(*ret);
|
||||
goto error;
|
||||
}
|
||||
va_end(ap2);
|
||||
|
||||
return (n);
|
||||
|
||||
error:
|
||||
va_end(ap2);
|
||||
*ret = NULL;
|
||||
return (-1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user