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 43797fcCopy full SHA for 43797fc
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,6 +30,7 @@ void *ba_os_alloc(size_t size) {
29
30
}
31
32
void ba_os_free(void *ptr, size_t size) {
33
+ utils_annotate_memory_defined(ptr, size);
34
int ret = munmap(ptr, size);
35
assert(ret == 0);
36
(void)ret; // unused
0 commit comments