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:
parent
8db1662d74
commit
746b5bbd50
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue