Skip to content

Commit a7aae9d

Browse files
authored
wasi_nn_llamacpp.c: make this compilable (#4403)
1 parent 535004d commit a7aae9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/iwasm/libraries/wasi-nn/src/wasi_nn_llamacpp.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* Copyright (C) 2019 Intel Corporation. All rights reserved.
33
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44
*/
5+
6+
#include <stdlib.h>
7+
58
#include "wasi_nn_types.h"
69
#include "utils/logger.h"
710
#include "llama.h"
@@ -286,7 +289,7 @@ deinit_backend(void *ctx)
286289

287290
llama_backend_free();
288291

289-
os_free(backend_ctx);
292+
free(backend_ctx);
290293
return success;
291294
}
292295

0 commit comments

Comments
 (0)