From 6573a93d4b1bd234d1c79c56dc3c7ae7b0f26ddc Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Wed, 14 Oct 2015 22:37:12 +0200 Subject: [PATCH] fixed memory leak --- src/libopensc/pkcs15-gemsafeGPK.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensc/pkcs15-gemsafeGPK.c b/src/libopensc/pkcs15-gemsafeGPK.c index f31d9af2..006c488d 100644 --- a/src/libopensc/pkcs15-gemsafeGPK.c +++ b/src/libopensc/pkcs15-gemsafeGPK.c @@ -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);