1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +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:
Bryn M. Reeves 2016-07-06 08:59:09 +01:00
parent fb0a671419
commit 69c721dd68

View File

@ -153,7 +153,7 @@ scan:
if (c == '-') {
if (at_start || in_range)
return_0;
goto_bad;
b = 0;
in_range = 1;
at_start = 1;