mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-10-01 01:36:01 -04:00
mark alloc_aligned_simple error path unlikely
This commit is contained in:
parent
f1cdc1e484
commit
c9820b6e37
@ -1304,7 +1304,7 @@ static int alloc_aligned(unsigned arena, void **memptr, size_t alignment, size_t
|
||||
static void *alloc_aligned_simple(unsigned arena, size_t alignment, size_t size) {
|
||||
void *ptr;
|
||||
int ret = alloc_aligned(arena, &ptr, alignment, size, 1);
|
||||
if (ret) {
|
||||
if (unlikely(ret)) {
|
||||
errno = ret;
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user