[PATCH] fs: fix memory leak in automount_add()
Sascha Hauer
s.hauer at pengutronix.de
Mon May 11 00:24:21 PDT 2026
On Thu, 07 May 2026 13:54:07 +0200, Ahmad Fatoum wrote:
> The struct automount is allocated before validating the path, but both
> error paths (filename_lookup failure and !d_is_dir check) skip freeing
> it. Move the allocation after validation succeeds.
>
>
Applied, thanks!
[1/1] fs: fix memory leak in automount_add()
https://git.pengutronix.de/cgit/barebox/commit/?id=bf25c4a93cdf (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list