Skip to content

Commit

Permalink
Merge pull request #6 from rizinorg/fini-pkg
Browse files Browse the repository at this point in the history
Remove the command on fini and remove package name
  • Loading branch information
wargio authored Jan 16, 2023
2 parents 24d9a10 + 52c327d commit e01b262
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/yara_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,9 @@ RZ_IPI bool yara_plugin_init(RzCore *core) {
RZ_IPI bool yara_plugin_fini(RzCore *core) {
yr_finalize();
ht_pp_free(yara_metadata);
return true;
RzCmd *cmd = core->rcmd;
RzCmdDesc* desc = rz_cmd_get_desc(cmd, "yara");
return rz_cmd_desc_remove(cmd, desc);
}

RzCorePlugin rz_core_plugin_yara = {
Expand All @@ -1032,6 +1034,5 @@ RZ_EXPORT RzLibStruct rizin_plugin = {
.type = RZ_LIB_TYPE_CORE,
.data = &rz_core_plugin_yara,
.version = RZ_VERSION,
.pkgname = "rz_yara"
};
#endif

0 comments on commit e01b262

Please sign in to comment.