Skip to content

Commit

Permalink
Fix usage of removed rz_malloc() (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
thestr4ng3r authored Mar 21, 2023
1 parent 9dc896f commit 4d327f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rz-plugin/cgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ RzAnnotatedCode* R2CGenerator::provideAnnotations(const rapidjson::Document &roo
}

std::string str = planecode.str();
code->code = reinterpret_cast<char *>(rz_malloc(str.length() + 1));
code->code = reinterpret_cast<char *>(rz_mem_alloc(str.length() + 1));
if(!code->code) {
rz_annotated_code_free(code);
throw DecompilationError("unable to allocate memory");
Expand Down

0 comments on commit 4d327f6

Please sign in to comment.