1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

conhost: Fix memory leak on error path in edit_line_move_to_history (scan-build).

This commit is contained in:
Alex Henrie 2023-06-04 22:44:31 -06:00 committed by Alexandre Julliard
parent 01deef2211
commit 8b54c2e35d

View file

@ -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;
}