From: marcansoft Date: Fri, 26 Feb 2010 15:13:58 +0000 (+0000) Subject: Get rid of flasher memory leak X-Git-Tag: v1.0.0~307 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/66d6ba705735e8879eeeb2142095d715f5076e48?hp=0ae6234a5be30c1c484c5225508a8d8b8111cd91 Get rid of flasher memory leak Too bad the proxmark usb code still has a bajillion :( --- diff --git a/client/flash.c b/client/flash.c index df81a90c..6670d637 100644 --- a/client/flash.c +++ b/client/flash.c @@ -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;