Get rid of flasher memory leak

Too bad the proxmark usb code still has a bajillion :(
This commit is contained in:
marcansoft 2010-02-26 15:13:58 +00:00
parent 0ae6234a5b
commit 66d6ba7057

View file

@ -250,6 +250,7 @@ int flash_load(flash_file_t *ctx, const char *name, int can_write_bl)
if (res < 0)
goto fail;
free(phdrs);
fclose(fd);
ctx->filename = name;
return 0;