Close capstone handle in m68k plugin dtor (#4408)
This commit is contained in:
parent
d9d066a377
commit
6c05989f19
1 changed files with 2 additions and 1 deletions
|
|
@ -780,7 +780,8 @@ static char *get_reg_profile(RzAnalysis *analysis) {
|
|||
static bool m68k_fini(void *user) {
|
||||
M68KContext *ctx = (M68KContext *)user;
|
||||
if (ctx) {
|
||||
RZ_FREE(ctx);
|
||||
cs_close(&ctx->handle);
|
||||
free(ctx);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue