sane: Fix memory leak in create_item (Coverity).

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2022-02-02 21:35:00 -07:00 committed by Alexandre Julliard
parent 8db1662d74
commit 746b5bbd50
1 changed files with 1 additions and 0 deletions

View File

@ -318,6 +318,7 @@ static int create_item(HDC hdc, const struct option_descriptor *opt,
if (trail_edit)
*count+=1;
free(trail_edit);
return leading_len + local_len + padding + padding2 + trail_len;
}