]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
tdb_transaction_recover: fix memory leak
authorwuguanghao <wuguanghao3@huawei.com>
Wed, 30 Jun 2021 08:27:14 +0000 (16:27 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Jul 2021 03:19:26 +0000 (23:19 -0400)
commit1b673e44c169994bf91b31a431e72ae0692549c1
treeaeb27e980b70d0236c31cc43c1a6c6ce588aa222
parentcac906a942f41b9b8515b10877d3e0b23ef548a9
tdb_transaction_recover: fix memory leak

In tdb_transaction_recover(), need free data before return,
otherwise it will cause memory leak.

Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Reviewed-by: Wu Bo <wubo40@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/tdb.c