From 4d327f67717795d7e585c849b0c36898c180f423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Tue, 21 Mar 2023 20:47:46 +0100 Subject: [PATCH] Fix usage of removed rz_malloc() (#20) --- src/rz-plugin/cgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rz-plugin/cgen.cpp b/src/rz-plugin/cgen.cpp index 33f9029..6bad0d2 100644 --- a/src/rz-plugin/cgen.cpp +++ b/src/rz-plugin/cgen.cpp @@ -120,7 +120,7 @@ RzAnnotatedCode* R2CGenerator::provideAnnotations(const rapidjson::Document &roo } std::string str = planecode.str(); - code->code = reinterpret_cast(rz_malloc(str.length() + 1)); + code->code = reinterpret_cast(rz_mem_alloc(str.length() + 1)); if(!code->code) { rz_annotated_code_free(code); throw DecompilationError("unable to allocate memory");