[PATCH v2 0/3] MR69: include: Add __WINE_MALLOC attribute and use it for allocation functions.

Brendan Shanks (@bshanks) wine at gitlab.winehq.org
Mon May 16 13:21:15 CDT 2022


On Mon May 16 04:34:00 2022 +0000, **** wrote:
> Zebediah Figura replied on the mailing list:
> ```
> On 5/15/22 23:27, Brendan Shanks (@bshanks) wrote:
> > I was going to use a separate define (something like __WINE_DEALLOC),
> since as mentioned it could also be useful for non-malloc functions like
> fopen/fclose, SysAllocString/SysFreeString, etc.
> Is SysAllocString not malloc-like? It has a header, but I assume that 
> shouldn't matter...
> ```
That's true, it does qualify for attribute(malloc), I've added that now.

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/69#note_896



More information about the wine-devel mailing list