Commit 8b54c2e3 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

parent 01deef22
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment