pkcs15-syn: fixed resource leak

This commit is contained in:
Frank Morgner 2015-04-29 23:22:28 +02:00 committed by Viktor Tarasov
parent 841d89dda6
commit 3cfb44d704
1 changed files with 1 additions and 0 deletions

View File

@ -272,6 +272,7 @@ static int parse_emu_block(sc_pkcs15_card_t *p15card, scconf_block *conf)
if (3 != sscanf(get_version(), "%u.%u.%u", &major, &minor, &fix)) {
sc_debug(ctx, SC_LOG_DEBUG_NORMAL,
"unable to get modules version number\n");
sc_dlclose(handle);
return SC_ERROR_INTERNAL;
}
}