mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00: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);
|
free(*ret);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
va_end(ap2);
|
||||||
|
|
||||||
return (n);
|
return (n);
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
va_end(ap2);
|
||||||
*ret = NULL;
|
*ret = NULL;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user