1
0
Fork 0

DBG: fixed memory leak with analyze_nukem

This commit is contained in:
mrexodia 2017-01-08 23:43:55 +01:00
parent 0c5a1a89f0
commit 94b2280e59
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 4 additions and 4 deletions

View File

@ -13,11 +13,11 @@ void Analyse_nukem(duint base, duint size)
BBlockArray blocks; BBlockArray blocks;
LinearPass* pass1 = new LinearPass(base, end, blocks); LinearPass pass1(base, end, blocks);
pass1->Analyse(); pass1.Analyse();
FunctionPass* pass2 = new FunctionPass(base, end, blocks); FunctionPass pass2(base, end, blocks);
pass2->Analyse(); pass2.Analyse();
dprintf("Analysis finished in %ums!\n", GetTickCount() - ticks); dprintf("Analysis finished in %ums!\n", GetTickCount() - ticks);
} }