| commit | a738909c244330ef413dc1739eb6b01549c1f346 | [log] [tgz] |
|---|---|---|
| author | Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> | Sat Feb 27 10:35:46 2021 +0800 |
| committer | Coly Li <colyli@suse.de> | Mon Jul 26 15:57:39 2021 +0800 |
| tree | eee2b1c32e322b6bf94cc1515dd14e3f12590867 | |
| parent | c23728288ac233b5d8e1c20731270eba87f1d769 [diff] |
bcache-tools: check whether allocating memory fails in tree() In tree(), we do not check whether malloc() returns NULL, it may cause potential Null pointer dereference problem. In addition, when we fail to list devices, we should free(out) before return. Signed-off-by: Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> Signed-off-by: Coly Li <colyli@suse.de>