mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 23:50:40 +00:00
Fix invalid free in r_fs_free
This commit is contained in:
parent
ba9657df83
commit
569e44b5a2
@ -59,7 +59,9 @@ R_API void r_fs_add(RFS *fs, RFSPlugin *p) {
|
||||
// TODO: find coliding plugin name
|
||||
if (p && p->init)
|
||||
p->init ();
|
||||
r_list_append (fs->plugins, p);
|
||||
RFSPlugin *sp = R_NEW (RFSPlugin);
|
||||
memcpy (sp, p, sizeof (RFSPlugin));
|
||||
r_list_append (fs->plugins, sp);
|
||||
}
|
||||
|
||||
R_API void r_fs_del(RFS *fs, RFSPlugin *p) {
|
||||
|
Loading…
Reference in New Issue
Block a user