commit | eca9049a079251a65120cd0dd91d5056a3d44360 | [log] [tgz] |
---|---|---|
author | Daniel Rosenberg <drosen@google.com> | Fri Jan 26 14:18:45 2024 -0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Jan 29 12:14:56 2024 -0800 |
tree | 18721aa6a0d52b63674df3aa9b610d8f77547983 | |
parent | 9f435e3d57d3ab478d37ce0398ae9095425a48df [diff] |
libf2fs: Fix possible memleak with Sparse Files If sparse files is set along with multiple devices, we initialize sparse file data multiple times without freeing the previously allocated data. This skips the initialization for subsequent devices, as sparse file mode currently only deals with device 0 anyways. Signed-off-by: Daniel Rosenberg <drosen@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>