Fix memleak in 'ood'

This commit is contained in:
pancake 2021-05-21 10:54:37 +02:00
parent 7a7c0a7bfb
commit 5df2109526

View File

@ -1221,6 +1221,8 @@ R_API void r_core_file_reopen_debug(RCore *core, const char *args) {
int bits = core->rasm->bits;
char *bin_abspath = r_file_abspath (binpath);
if (strstr (bin_abspath, "://")) {
free (bin_abspath);
free (binpath);
return;
}
char *escaped_path = r_str_arg_escape (bin_abspath);