Purge Pins on r_anal_purge ##anal (#17703)

This commit is contained in:
Florian Märkl 2020-09-27 06:39:50 +02:00 committed by GitHub
parent d74ecd12b7
commit ae0b5e503f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -411,7 +411,7 @@ R_API bool r_anal_op_is_eob(RAnalOp *op) {
}
}
R_API int r_anal_purge (RAnal *anal) {
R_API void r_anal_purge(RAnal *anal) {
r_anal_hint_clear (anal);
r_interval_tree_fini (&anal->meta);
r_interval_tree_init (&anal->meta, r_meta_item_free);
@ -419,10 +419,11 @@ R_API int r_anal_purge (RAnal *anal) {
sdb_reset (anal->sdb_zigns);
sdb_reset (anal->sdb_classes);
sdb_reset (anal->sdb_classes_attrs);
r_anal_pin_fini (anal);
r_anal_pin_init (anal);
r_list_free (anal->fcns);
anal->fcns = r_list_newf (r_anal_function_free);
r_anal_purge_imports (anal);
return 0;
}
R_API int r_anal_archinfo(RAnal *anal, int query) {

View File

@ -1516,7 +1516,7 @@ R_API bool r_anal_function_contains(RAnalFunction *fcn, ut64 addr);
/* anal.c */
R_API RAnal *r_anal_new(void);
R_API int r_anal_purge (RAnal *anal);
R_API void r_anal_purge(RAnal *anal);
R_API RAnal *r_anal_free(RAnal *r);
R_API void r_anal_set_user_ptr(RAnal *anal, void *user);
R_API void r_anal_plugin_free (RAnalPlugin *p);
@ -1605,8 +1605,8 @@ R_API void r_anal_esil_trace_restore(RAnalEsil *esil, int idx);
/* pin */
R_API void r_anal_pin_init(RAnal *a);
R_API void r_anal_pin_fini(RAnal *a);
R_API void r_anal_pin (RAnal *a, ut64 addr, const char *name);
R_API void r_anal_pin_unset (RAnal *a, ut64 addr);
R_API void r_anal_pin(RAnal *a, ut64 addr, const char *name);
R_API void r_anal_pin_unset(RAnal *a, ut64 addr);
R_API const char *r_anal_pin_call(RAnal *a, ut64 addr);
R_API void r_anal_pin_list(RAnal *a);