We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3cc8c6 + 765ad8b commit 70dddacCopy full SHA for 70dddac
driver/others/memory.c
@@ -2538,7 +2538,7 @@ static void *alloc_shm(void *address){
2538
}
2539
#endif
2540
2541
-#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))
2542
2543
static void alloc_hugetlb_free(struct release_t *release){
2544
@@ -3254,7 +3254,7 @@ void blas_shutdown(void){
3254
3255
newmemory[pos].lock = 0;
3256
3257
- free(newmemory);
+ free((void*)newmemory);
3258
newmemory = NULL;
3259
memory_overflowed = 0;
3260
0 commit comments