fixed memory leak

This commit is contained in:
Frank Morgner 2015-10-14 22:37:12 +02:00
parent a5685b537e
commit 6573a93d4b
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ static int sc_pkcs15emu_gemsafeGPK_init(sc_pkcs15_card_t *p15card)
/* we will use dfpath in all other references */
dfpath = file->id;
free(file);
sc_file_free(file);
file = NULL;
sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "GemSafe file found, id=%d",dfpath);