mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: fix mask leak in dm_bitset_parse_list
If an unexpected '-' is found jump to the error branch so that the mask is properly freed before returning.
This commit is contained in:
parent
fb0a671419
commit
69c721dd68
@ -153,7 +153,7 @@ scan:
|
||||
|
||||
if (c == '-') {
|
||||
if (at_start || in_range)
|
||||
return_0;
|
||||
goto_bad;
|
||||
b = 0;
|
||||
in_range = 1;
|
||||
at_start = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user