diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index ee27caaa..0f31eddd 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -542,10 +542,7 @@ CutterJson CutterCore::cmdjTask(const QString &str) RizinCmdTask task(str); task.startTask(); task.joinTask(); - const char *res = task.getResultRaw(); - char *copy = static_cast(rz_mem_alloc(strlen(res) + 1)); - strcpy(copy, res); - return parseJson(copy, str); + return task.getResultJson(); } CutterJson CutterCore::parseJson(char *res, const char *cmd)