Close capstone handle in m68k plugin dtor (#4408)

This commit is contained in:
pelijah 2024-03-31 03:30:54 +03:00 committed by GitHub
parent d9d066a377
commit 6c05989f19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}