Eric Pouech : cmd: Remove malloc attribute from xrealloc.
Module: wine Branch: master Commit: 508b3ac99678e09812f935d4b7db6e24f88c8e7c URL: https://gitlab.winehq.org/wine/wine/-/commit/508b3ac99678e09812f935d4b7db6e2... Author: Eric Pouech <epouech(a)codeweavers.com> Date: Sat May 11 08:47:10 2024 +0200 cmd: Remove malloc attribute from xrealloc. Signed-off-by: Eric Pouech <epouech(a)codeweavers.com> --- programs/cmd/wcmd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/cmd/wcmd.h b/programs/cmd/wcmd.h index 72e5ef1ad36..0e8532929cf 100644 --- a/programs/cmd/wcmd.h +++ b/programs/cmd/wcmd.h @@ -124,8 +124,9 @@ void WCMD_free_commands(CMD_LIST *cmds); void WCMD_execute (const WCHAR *orig_command, const WCHAR *redirects, CMD_LIST **cmdList, BOOL retrycall); -void *xrealloc(void *, size_t) __WINE_ALLOC_SIZE(2) __WINE_DEALLOC(free) __WINE_MALLOC; +void *xrealloc(void *, size_t) __WINE_ALLOC_SIZE(2) __WINE_DEALLOC(free); +static inline void *xalloc(size_t sz) __WINE_MALLOC; static inline void *xalloc(size_t sz) { return xrealloc(NULL, sz);
participants (1)
-
Alexandre Julliard