Re: [PATCH] wifi: rtw89: debug: Fix memory leak in __print_txpwr_map()

From: Markus Elfring

Date: Fri Jan 16 2026 - 06:05:01 EST



> Fix this by freeing the temporary buffer bufp in the error path.


How do you think about to use an attribute like “__free(vfree)”?
https://elixir.bootlin.com/linux/v6.19-rc5/source/drivers/net/wireless/realtek/rtw89/debug.c#L815-L858

Regards,
Markus