From 11a521f10a4c4666804be2403022686a1be9e27c Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sat, 8 May 2021 12:46:30 +0300 Subject: [PATCH] mdbx-windows: minor fix `mdbx_free()` for `MDBX_WITHOUT_MSVC_CRT=ON`. Related to https://github.com/erthink/libmdbx/issues/155 Change-Id: I378d9c47b51c55e1e61bc7f6269cbc8182265870 --- src/osal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/osal.h b/src/osal.h index b0c9791e..b35ad00e 100644 --- a/src/osal.h +++ b/src/osal.h @@ -205,9 +205,7 @@ static inline void *mdbx_realloc(void *ptr, size_t bytes) { #endif /* mdbx_realloc */ #ifndef mdbx_free -static inline void mdbx_free(void *ptr) { - return HeapFree(GetProcessHeap(), 0, ptr); -} +static inline void mdbx_free(void *ptr) { HeapFree(GetProcessHeap(), 0, ptr); } #endif /* mdbx_free */ #else /* MDBX_WITHOUT_MSVC_CRT */