On Wed, 30 Sep 2026 14:22:14 +0530, Suraj Kakade wrote:
> When use_fallback is set and the config defines a fallback label,
> parse_pxefile() assigns fallback_label to default_label. The previous
> default_label allocation is not freed, so that string is leaked. Both
> members then point at the same buffer, and destroy_pxe_menu() frees it
> twice.
>
> Free the previous default_label and clear fallback_label so only one
> member owns the string.
>
> [...]
Applied to u-boot-net branch for-next, thanks!
[1/1] boot: pxe_utils: Fix leak and double free when using fallback
commit: 71996b9af04af705be67ebf0e990e21889072ecd
Best regards,
--
Jerome Forissier <[email protected]>