Fixed potential memory-leak in question()
This commit is contained in:
parent
a3783619f2
commit
4def69cd14
1 changed files with 2 additions and 0 deletions
|
@ -1739,6 +1739,8 @@ static int question(short preset, const char *format, va_list args)
|
|||
/* Something has gone wrong */
|
||||
if (format_len < 1) {
|
||||
pm_printf(ALPM_LOG_ERROR, _("vsnprintf failure: Failed to cache prompt: %s\n"), strerror(errno));
|
||||
|
||||
va_end(args_copy);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue