mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-09 07:42:25 +00:00
Fix memory leak in autocompletion (#10984)
This commit is contained in:
parent
800fa1b909
commit
3565137460
@ -3142,6 +3142,7 @@ R_API void r_core_autocomplete_free(RCoreAutocomplete *obj) {
|
||||
r_core_autocomplete_free (obj->subcmds[i]);
|
||||
obj->subcmds[i] = NULL;
|
||||
}
|
||||
free (obj->subcmds);
|
||||
free ((char*) obj->cmd);
|
||||
free (obj);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user