[PATCH 1/4] dm: core: free fdt when fdt_create_empty_tree failure
Raphael Gallais-Pou
raphael.gallais-pou at foss.st.com
Tue Jul 7 10:36:08 CEST 2026
On 7/3/26 11:11, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> If fdt_create_empty_tree fails, the malloc-ed fdt buffer is never freed.
> Add free before the error return.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
Hi,
Reviewed-by: Raphaël Gallais-Pou <raphael.gallais-pou at foss.st.com>
Best regards,
Raphaël
More information about the U-Boot
mailing list