Heinrich Schuchardt 9084e1b1b9 fs: ext4: correct error handling
After calling strdup() check the returned pointer.

Avoid a memory leak if the directory is not found.

Reported-by: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
Fixes: 22fdac381f98 ("fs: ext4: implement opendir, readdir, closedir")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2024-11-13 08:18:50 -06:00
..
2024-11-01 13:37:58 -06:00
2024-08-15 16:14:36 -06:00
2024-08-15 14:35:15 -06:00
2024-11-13 08:18:50 -06:00
2018-01-22 16:43:30 -05:00