File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
*
3
- * Copyright (C) 2024 Intel Corporation
3
+ * Copyright (C) 2024-2025 Intel Corporation
4
4
*
5
5
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
6
6
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
@@ -146,7 +146,7 @@ int main(void) {
146
146
147
147
// Allocate some memory from the pool
148
148
int * ptr = umfPoolMalloc (cu_disjoint_memory_pool , sizeof (int ));
149
- if (res != UMF_RESULT_SUCCESS ) {
149
+ if (ptr == NULL ) {
150
150
fprintf (stderr , "Failed to allocate memory from the memory pool!\n" );
151
151
ret = -1 ;
152
152
goto memory_pool_destroy ;
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ int main(void) {
157
157
158
158
// Allocate some memory from the pool
159
159
int * ptr = umfPoolMalloc (ze_disjoint_memory_pool , sizeof (int ));
160
- if (res != UMF_RESULT_SUCCESS ) {
160
+ if (ptr == NULL ) {
161
161
fprintf (stderr , "Failed to allocate memory from the memory pool!\n" );
162
162
ret = -1 ;
163
163
goto memory_pool_destroy ;
You can’t perform that action at this time.
0 commit comments