mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-03 03:35:37 +00:00
Fix all the covs (memleaks) reported the 15th of this month (#17163)
This commit is contained in:
parent
ad20ed47bd
commit
f061b49c14
@ -55,6 +55,9 @@ static int assemble(RAsm *a, RAsmOp *op, const char *buf) {
|
||||
(void)close (ifd);
|
||||
free (asm_buf);
|
||||
if (!success) {
|
||||
free (as);
|
||||
free (ipath);
|
||||
free (opath);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
@ -3459,6 +3459,7 @@ R_API char *r_core_editor(const RCore *core, const char *file, const char *str)
|
||||
const size_t str_len = strlen (str);
|
||||
if (write (fd, str, str_len) != str_len) {
|
||||
close (fd);
|
||||
free (name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -408,6 +408,7 @@ R_API int r_main_radare2(int argc, const char **argv) {
|
||||
r = r_core_new ();
|
||||
if (!r) {
|
||||
eprintf ("Cannot initialize RCore\n");
|
||||
LISTS_FREE ();
|
||||
return 1;
|
||||
}
|
||||
r->r_main_radare2 = r_main_radare2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user