[PATCH 0/1] MR1605: include: Annotate I_RpcAllocate with __WINE_(ALLOC_SIZE|DEALLOC|MALLOC).
This gets us a nice warning if memory allocated by this function is freed incorrectly. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1605
From: Alex Henrie <alexhenrie24(a)gmail.com> --- include/rpcdcep.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/rpcdcep.h b/include/rpcdcep.h index bf518064553..2eeef973ff0 100644 --- a/include/rpcdcep.h +++ b/include/rpcdcep.h @@ -152,10 +152,11 @@ RPCRTAPI RPC_STATUS RPC_ENTRY RPCRTAPI RPC_STATUS RPC_ENTRY I_RpcReceive( RPC_MESSAGE* Message ); -RPCRTAPI void* RPC_ENTRY - I_RpcAllocate( unsigned int Size ); RPCRTAPI void RPC_ENTRY I_RpcFree( void* Object ); +RPCRTAPI void* RPC_ENTRY + I_RpcAllocate( unsigned int Size ) + __WINE_ALLOC_SIZE(1) __WINE_DEALLOC(I_RpcFree) __WINE_MALLOC; RPCRTAPI RPC_BINDING_HANDLE RPC_ENTRY I_RpcGetCurrentCallHandle( void ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1605
participants (2)
-
Alex Henrie -
Alex Henrie (@alexhenrie)