]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Get rid of flasher memory leak
authormarcansoft <marcansoft@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 26 Feb 2010 15:13:58 +0000 (15:13 +0000)
committermarcansoft <marcansoft@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 26 Feb 2010 15:13:58 +0000 (15:13 +0000)
Too bad the proxmark usb code still has a bajillion :(

client/flash.c

index df81a90ce45dfbf4f4c5352a1598918180ebad89..6670d637dca187bff1c7944961dbe20101198620 100644 (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;
Impressum, Datenschutz