Fix resource leak in core/io/dump

This commit is contained in:
pancake 2015-08-19 10:37:02 +02:00
parent 0868703c9f
commit 93a4bcbb56

View file

@ -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);