Merge pull request #5023 from rgommers/fix-warnings

Fix two compiler warnings in `memory.c`
This commit is contained in:
Martin Kroeker
2024-12-18 16:13:12 -08:00
committed by GitHub

View File

@@ -2538,7 +2538,7 @@ static void *alloc_shm(void *address){
}
#endif
#if defined OS_LINUX || defined OS_AIX || defined __sun__ || defined OS_WINDOWS
#if ((defined ALLOC_HUGETLB) && (defined OS_LINUX || defined OS_AIX || defined __sun__ || defined OS_WINDOWS))
static void alloc_hugetlb_free(struct release_t *release){
@@ -3254,7 +3254,7 @@ void blas_shutdown(void){
#endif
newmemory[pos].lock = 0;
}
free(newmemory);
free((void*)newmemory);
newmemory = NULL;
memory_overflowed = 0;
}