On Sun, 8 Nov 2026 at 20:39, jiputer <[email protected]> wrote:
>
> In the function OPLOpenTable, replaced the usage of malloc with g_new
> and removed the NULL checks meant for malloc.
> In OPLCloseTable and OPLDestroy, replaced the usage of free to g_free.
> In OPLCreate, replaced malloc with g_malloc0 and removed the NULL check
> for ptr, and the now unnecessary memset.
> The program will now abort when memory allocation fails instead of
> checking if the pointer returned is null.
>
> Signed-off-by: jiputer <[email protected]>

There is already a fix for this one on the list, picked up by
the -trivial patchset; it just hasn't reached git yet.

https://lore.kernel.org/qemu-devel/[email protected]/

(This is why #1798 says "see the on-list discussion first" about that one.)

thanks
-- PMM

Reply via email to