diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index 83a3afc0..3b479938 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -3483,7 +3483,10 @@ void CutterCore::addFlag(RVA offset, QString name, RVA size) QString CutterCore::listFlagsAsStringAt(RVA addr) { CORE_LOCK(); - return r_flag_get_liststr (core->flags, addr); + char *flagList = r_flag_get_liststr (core->flags, addr); + QString result(flagList); + r_mem_free(flagList); + return result; } QString CutterCore::nearestFlag(RVA offset, RVA *flagOffsetOut)