mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-26 16:48:56 +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