mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
libdm: fix check of pointer
Ahhh being blind here - wanted to check the pointer before dereference not a dereferenced one.
This commit is contained in:
parent
2a2487f02f
commit
b6a45963e3
@ -2692,14 +2692,14 @@ static const char *_tok_value_string_list(const struct dm_report_field_type *ft,
|
|||||||
dm_free(arr);
|
dm_free(arr);
|
||||||
out:
|
out:
|
||||||
*end = s;
|
*end = s;
|
||||||
if (*sel_str_list)
|
if (sel_str_list)
|
||||||
*sel_str_list = ssl;
|
*sel_str_list = ssl;
|
||||||
return s;
|
return s;
|
||||||
bad:
|
bad:
|
||||||
*end = s;
|
*end = s;
|
||||||
if (ssl)
|
if (ssl)
|
||||||
dm_pool_free(mem, ssl);
|
dm_pool_free(mem, ssl);
|
||||||
if (*sel_str_list)
|
if (sel_str_list)
|
||||||
*sel_str_list = NULL;
|
*sel_str_list = NULL;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user