File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -822,7 +822,7 @@ static void *alloc_qalloc(void *address){
822
822
823
823
static void alloc_windows_free (struct alloc_t * alloc_info ){
824
824
825
- VirtualFree (alloc_info , allocation_block_size , MEM_DECOMMIT );
825
+ VirtualFree (alloc_info , 0 , MEM_RELEASE );
826
826
827
827
}
828
828
@@ -935,7 +935,7 @@ static void alloc_hugetlb_free(struct alloc_t *alloc_info){
935
935
936
936
#ifdef OS_WINDOWS
937
937
938
- VirtualFree (alloc_info , allocation_block_size , MEM_LARGE_PAGES | MEM_DECOMMIT );
938
+ VirtualFree (alloc_info , 0 , MEM_LARGE_PAGES | MEM_RELEASE );
939
939
940
940
#endif
941
941
@@ -2310,7 +2310,7 @@ static void *alloc_qalloc(void *address){
2310
2310
2311
2311
static void alloc_windows_free (struct release_t * release ){
2312
2312
2313
- VirtualFree (release -> address , BUFFER_SIZE , MEM_DECOMMIT );
2313
+ VirtualFree (release -> address , 0 , MEM_RELEASE );
2314
2314
2315
2315
}
2316
2316
@@ -2432,7 +2432,7 @@ static void alloc_hugetlb_free(struct release_t *release){
2432
2432
2433
2433
#ifdef OS_WINDOWS
2434
2434
2435
- VirtualFree (release -> address , BUFFER_SIZE , MEM_LARGE_PAGES | MEM_DECOMMIT );
2435
+ VirtualFree (release -> address , 0 , MEM_LARGE_PAGES | MEM_RELEASE );
2436
2436
2437
2437
#endif
2438
2438
You can’t perform that action at this time.
0 commit comments