Commit 9716a1a9 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

include: Remove __WINE_MALLOC from functions that shouldn't have it.

According to the GCC documentation,[1] __attribute__((malloc)) may not be used on functions that return memory that contains one or more valid pointers. [1] https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
parent 42b13eff
......@@ -25,7 +25,7 @@ extern "C" {
BOOL WINAPI FreeADsMem(void*);
void* WINAPI AllocADsMem(DWORD) __WINE_ALLOC_SIZE(1) __WINE_DEALLOC(FreeADsMem) __WINE_MALLOC;
void* WINAPI ReallocADsMem(void*,DWORD,DWORD) __WINE_ALLOC_SIZE(3) __WINE_DEALLOC(FreeADsMem) __WINE_MALLOC;
void* WINAPI ReallocADsMem(void*,DWORD,DWORD) __WINE_ALLOC_SIZE(3) __WINE_DEALLOC(FreeADsMem);
BOOL WINAPI FreeADsStr(WCHAR*);
WCHAR* WINAPI AllocADsStr(WCHAR*) __WINE_DEALLOC(FreeADsStr) __WINE_MALLOC;
......
......@@ -33,17 +33,17 @@ WINBASEAPI void WINAPI CloseThreadpoolIo(TP_IO*);
WINBASEAPI void WINAPI CloseThreadpoolTimer(PTP_TIMER);
WINBASEAPI void WINAPI CloseThreadpoolWait(PTP_WAIT);
WINBASEAPI void WINAPI CloseThreadpoolWork(PTP_WORK);
WINBASEAPI TP_POOL* WINAPI CreateThreadpool(void*) __WINE_DEALLOC(CloseThreadpool) __WINE_MALLOC;
WINBASEAPI TP_POOL* WINAPI CreateThreadpool(void*) __WINE_DEALLOC(CloseThreadpool);
WINBASEAPI TP_CLEANUP_GROUP* WINAPI CreateThreadpoolCleanupGroup(void)
__WINE_DEALLOC(CloseThreadpoolCleanupGroup) __WINE_MALLOC;
__WINE_DEALLOC(CloseThreadpoolCleanupGroup);
WINBASEAPI TP_IO* WINAPI CreateThreadpoolIo(HANDLE,PTP_WIN32_IO_CALLBACK,void*,TP_CALLBACK_ENVIRON*)
__WINE_DEALLOC(CloseThreadpoolIo) __WINE_MALLOC;
__WINE_DEALLOC(CloseThreadpoolIo);
WINBASEAPI TP_TIMER* WINAPI CreateThreadpoolTimer(PTP_TIMER_CALLBACK,void*,TP_CALLBACK_ENVIRON*)
__WINE_DEALLOC(CloseThreadpoolTimer) __WINE_MALLOC;
__WINE_DEALLOC(CloseThreadpoolTimer);
WINBASEAPI TP_WAIT* WINAPI CreateThreadpoolWait(PTP_WAIT_CALLBACK,void*,TP_CALLBACK_ENVIRON*)
__WINE_DEALLOC(CloseThreadpoolWait) __WINE_MALLOC;
__WINE_DEALLOC(CloseThreadpoolWait);
WINBASEAPI TP_WORK* WINAPI CreateThreadpoolWork(PTP_WORK_CALLBACK,void*,TP_CALLBACK_ENVIRON*)
__WINE_DEALLOC(CloseThreadpoolWork) __WINE_MALLOC;
__WINE_DEALLOC(CloseThreadpoolWork);
WINBASEAPI void WINAPI DisassociateCurrentThreadFromCallback(PTP_CALLBACK_INSTANCE);
WINBASEAPI void WINAPI FreeLibraryWhenCallbackReturns(PTP_CALLBACK_INSTANCE,HMODULE);
WINBASEAPI BOOL WINAPI IsThreadpoolTimerSet(PTP_TIMER);
......
......@@ -29,12 +29,12 @@ typedef unsigned int ber_len_t;
void CDECL ber_free( BerElement *, int );
void CDECL ber_bvfree( BERVAL * );
BerElement * CDECL ber_alloc_t( int ) __WINE_DEALLOC(ber_free) __WINE_MALLOC;
BERVAL * CDECL ber_bvdup( BERVAL * ) __WINE_DEALLOC(ber_bvfree) __WINE_MALLOC;
BerElement * CDECL ber_alloc_t( int ) __WINE_DEALLOC(ber_free);
BERVAL * CDECL ber_bvdup( BERVAL * ) __WINE_DEALLOC(ber_bvfree);
void CDECL ber_bvecfree( BERVAL ** );
ULONG CDECL ber_first_element( BerElement *, ULONG *, char ** );
int CDECL ber_flatten( BerElement *, BERVAL ** );
BerElement * CDECL ber_init( BERVAL * ) __WINE_DEALLOC(ber_free) __WINE_MALLOC;
BerElement * CDECL ber_init( BERVAL * ) __WINE_DEALLOC(ber_free);
ULONG CDECL ber_next_element( BerElement *, ULONG *, char * );
ULONG CDECL ber_peek_tag( BerElement *, ULONG * );
int WINAPIV ber_printf( BerElement *, char *, ... );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment