tccardos: fixed freeing file object

This commit is contained in:
Frank Morgner 2020-01-31 22:34:51 +01:00
parent 723176d62f
commit c339136c73
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ static int read_file(struct sc_card *card, const char *file, u8 *buf,
if (fid->size < *len)
*len = fid->size;
r = sc_read_binary(card, 0, buf, *len, 0);
free(fid);
sc_file_free(fid);
if ((size_t)r < *len)
return SC_ERROR_INTERNAL;