[winpr,file] mark winpr_fopen with WINPR_ATTR_MALLOC

enable allocator/deallocator checks for FILE* created by this function
This commit is contained in:
Armin Novak 2024-09-02 14:39:53 +02:00
parent 654e107ade
commit 7c537d681f

View File

@ -550,6 +550,7 @@ extern "C"
WINPR_API int GetNamePipeFileDescriptor(HANDLE hNamedPipe); WINPR_API int GetNamePipeFileDescriptor(HANDLE hNamedPipe);
WINPR_API HANDLE GetFileHandleForFileDescriptor(int fd); WINPR_API HANDLE GetFileHandleForFileDescriptor(int fd);
WINPR_ATTR_MALLOC(fclose, 1)
WINPR_API FILE* winpr_fopen(const char* path, const char* mode); WINPR_API FILE* winpr_fopen(const char* path, const char* mode);
#ifdef __cplusplus #ifdef __cplusplus