[PATCH 0/1] MR2974: conhost: Fix memory leak on error path in edit_line_move_to_history (scan-build).
5 Jun
5 Jun
7:46 a.m.
New subject: [PATCH 1/1] conhost: Fix memory leak on error path in edit_line_move_to_history (scan-build).
From: Alex Henrie <alexhenrie24(a)gmail.com> --- programs/conhost/conhost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index 04a294fc31f..c2d48d082c6 100644 --- a/programs/conhost/conhost.c +++ b/programs/conhost/conhost.c @@ -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; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/2974
11:49 a.m.
New subject: [PATCH 0/1] MR2974: conhost: Fix memory leak on error path in edit_line_move_to_history (scan-build). - approved
This merge request was approved by Jacek Caban. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2974
924
Age (days ago)
924
Last active (days ago)
2 comments
3 participants
participants (3)
-
Alex Henrie -
Alex Henrie (@alexhenrie) -
Jacek Caban (@jacek)