[build] fix Wmismatched-deallocator warnings

With custom malloc function attributes the fail path in the _New
functions produces warnings due to allocator mismatches. Silence them.
This commit is contained in:
akallabeth
2024-02-04 11:11:29 +01:00
committed by akallabeth
parent 763462d0a9
commit ba8cf8cf21
64 changed files with 266 additions and 8 deletions

View File

@@ -959,7 +959,10 @@ proxyServer* pf_server_new(const proxyConfig* config)
return server;
out:
WINPR_PRAGMA_DIAG_PUSH
WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
pf_server_free(server);
WINPR_PRAGMA_DIAG_POP
return NULL;
}