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.
1 parent feeb424 commit 6619712Copy full SHA for 6619712
src/base_alloc/base_alloc_linux.c
@@ -1,12 +1,13 @@
1
/*
2
- * Copyright (C) 2024 Intel Corporation
+ * Copyright (C) 2024-2025 Intel Corporation
3
*
4
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
5
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
*/
7
8
#include <assert.h>
9
#include <stdio.h>
10
+#include <string.h>
11
#include <sys/mman.h>
12
#include <sys/syscall.h>
13
#include <unistd.h>
@@ -29,7 +30,7 @@ void *ba_os_alloc(size_t size) {
29
30
}
31
32
void ba_os_free(void *ptr, size_t size) {
- int ret = munmap(ptr, size);
33
+ int ret = utils_munmap(ptr, size);
34
assert(ret == 0);
35
(void)ret; // unused
36
0 commit comments