mirror of
https://github.com/rizinorg/rizin
synced 2026-08-22 20:26:16 -04:00
Fix resource leak in core/io/dump
This commit is contained in:
parent
0868703c9f
commit
93a4bcbb56
1 changed files with 1 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ R_API int r_core_dump(RCore *core, const char *file, ut64 addr, ut64 size, int a
|
|||
buf = malloc (bs);
|
||||
if (!buf) {
|
||||
eprintf ("Cannot alloc %d bytes\n", bs);
|
||||
fclose (fd);
|
||||
return R_FALSE;
|
||||
}
|
||||
r_cons_break (NULL, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue