master - libdm: fix mask leak in dm_bitset_parse_list
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=69c721dd68a6ac517d7962f927f3f59f9e05d9c4 Commit: 69c721dd68a6ac517d7962f927f3f59f9e05d9c4 Parent: fb0a67141928dc62279ba1c8ab137c527f82a393 Author: Bryn M. Reeves <[email protected]> AuthorDate: Wed Jul 6 08:59:09 2016 +0100 Committer: Bryn M. Reeves <[email protected]> CommitterDate: Wed Jul 6 08:59:09 2016 +0100
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.
--- libdm/datastruct/bitset.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
libdm/datastruct/bitset.c +1 -1
@@ -153,7 +153,7 @@ scan:if (c =='-' ) {if (at_start || in_range) - return_0; + goto_bad; b =0 ; in_range =1 ; at_start =1 ;