]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: ext4: free directory node in ext4fs_exists()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Oct 2024 06:40:45 +0000 (08:40 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 1 Nov 2024 19:37:58 +0000 (13:37 -0600)
commit2d94480c025faf11d2e1010f5437e72d8e934127
tree4303c2d929be507fdffe5c3ac978f5c237e39b20
parenta1a86a1784ef8a488f9af024dcc3de57924c354e
fs: ext4: free directory node in ext4fs_exists()

The directory retrieved in ext4fs_exists() should be freed to avoid a
memory leak.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
fs/ext4/ext4fs.c