conhost: Fix memory leak on error path in edit_line_move_to_history (scan-build).
This commit is contained in:
parent
01deef2211
commit
8b54c2e35d
1 changed files with 1 additions and 0 deletions
|
@ -715,6 +715,7 @@ static void edit_line_move_to_history( struct console *console, int index )
|
|||
}
|
||||
else
|
||||
{
|
||||
free( line );
|
||||
ctx->status = STATUS_NO_MEMORY;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue