[PATCH] tools: Handle realloc failure in strlist_add
Tom Rini
trini at konsulko.com
Wed Jan 28 22:54:18 CET 2026
On Mon, 19 Jan 2026 15:49:06 +0100, Francois Berder wrote:
> If realloc fails, list->strings was set to NULL and
> it would create a leak. This commit ensures that if we cannot
> add a string to the list, the list stays in a good state.
>
>
Applied to u-boot/master, thanks!
[1/1] tools: Handle realloc failure in strlist_add
commit: 3a53a03f50118e329a0f38bd28ea5f7d8e22147a
--
Tom
More information about the U-Boot
mailing list