Skip to content

Commit 6619712

Browse files
committed
[CI] Fix failing address sanitizer
1 parent feeb424 commit 6619712

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/base_alloc/base_alloc_linux.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
/*
2-
* Copyright (C) 2024 Intel Corporation
2+
* Copyright (C) 2024-2025 Intel Corporation
33
*
44
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
55
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
*/
77

88
#include <assert.h>
99
#include <stdio.h>
10+
#include <string.h>
1011
#include <sys/mman.h>
1112
#include <sys/syscall.h>
1213
#include <unistd.h>
@@ -29,7 +30,7 @@ void *ba_os_alloc(size_t size) {
2930
}
3031

3132
void ba_os_free(void *ptr, size_t size) {
32-
int ret = munmap(ptr, size);
33+
int ret = utils_munmap(ptr, size);
3334
assert(ret == 0);
3435
(void)ret; // unused
3536
}

0 commit comments

Comments
 (0)