[Bug 265071] ext2fs: fix potential memory leak in ext4_ext_grow_indepth()
Date: Thu, 07 Jul 2022 06:35:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265071 --- Comment #1 from niejianglei2021@163.com <niejianglei2021@163.com> --- ext4_ext_grow_indepth() allocates memory chunk for "newblk" with ext4_ext_alloc_meta(). When getblk() and bwrite() fail in this funciton, "newblk" is not released, which will lead to a memory leak. We should release the "newblk" with ext4_ext_blkfree() when some error occurs to avoid the memory leak. -- You are receiving this mail because: You are the assignee for the bug.