Whamcloud - gitweb
debugfs: fix memory leak problem in read_list()
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Sat, 20 Feb 2021 08:41:29 +0000 (16:41 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 Feb 2021 17:02:24 +0000 (12:02 -0500)
commit989a4189698c4efa53b521b6ad8236bbfc3452c3
tree5664ade0ac72d8d71c634ee3cd50e815d58a161c
parented907b1df27111bb717e2aba7492547977c63049
debugfs: fix memory leak problem in read_list()

In read_list func, if strtoull() fails in while loop,
we will return the error code directly. Then, memory of
variable lst will be leaked without setting to *list.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: linfeilong <linfeilong@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/util.c