This commit is contained in:
augustin64 2023-02-18 14:10:52 +01:00
parent 1fdb9ff37a
commit e181deab1e
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ extern "C"
void gree(void* ptr) {
#if defined(USE_CUDA) || defined(TEST_MEMORY_MANAGEMENT)
pthread_mutex_lock(&memory_lock);
free_memory(ptr, memory);
memory = free_memory(ptr, memory);
pthread_mutex_unlock(&memory_lock);
#else
free(ptr);

View File

@ -124,7 +124,7 @@ extern "C"
void gree(void* ptr) {
#if defined(USE_CUDA) || defined(TEST_MEMORY_MANAGEMENT)
pthread_mutex_lock(&memory_lock);
free_memory(ptr, memory);
memory = free_memory(ptr, memory);
pthread_mutex_unlock(&memory_lock);
#else
free(ptr);