From 7c537d681f7488db9d903a0c846b9edda501d903 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 2 Sep 2024 14:39:53 +0200 Subject: [PATCH] [winpr,file] mark winpr_fopen with WINPR_ATTR_MALLOC enable allocator/deallocator checks for FILE* created by this function --- winpr/include/winpr/file.h | 1 + 1 file changed, 1 insertion(+) diff --git a/winpr/include/winpr/file.h b/winpr/include/winpr/file.h index 09aa2c223..3c7466c81 100644 --- a/winpr/include/winpr/file.h +++ b/winpr/include/winpr/file.h @@ -550,6 +550,7 @@ extern "C" WINPR_API int GetNamePipeFileDescriptor(HANDLE hNamedPipe); WINPR_API HANDLE GetFileHandleForFileDescriptor(int fd); + WINPR_ATTR_MALLOC(fclose, 1) WINPR_API FILE* winpr_fopen(const char* path, const char* mode); #ifdef __cplusplus