mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 19:36:11 +00:00
Fix memory leak in listFlagsAsStringsAt. (#2145)
This commit is contained in:
parent
b7d0c8531b
commit
56543fa0c7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user