From 3911f048229861ff5f96e5d61721cc1debbecb02 Mon Sep 17 00:00:00 2001 From: Nikita Ushakov Date: Sun, 29 Sep 2024 22:03:45 +0100 Subject: [PATCH] Add namespace --- src/module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module.cpp b/src/module.cpp index c51bd3a..ce2185a 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -338,7 +338,7 @@ namespace { template void* AllocateMemory(ArgumentList& args) { - void* ptr = malloc(sizeof(T)); + void* ptr = std::malloc(sizeof(T)); args.push_back(ptr); return ptr; } @@ -346,7 +346,7 @@ namespace { template void FreeMemory(void* ptr) { reinterpret_cast(ptr)->~T(); - free(ptr); + std::free(ptr); } void CallbackRefQueueCallback(void* callback) {