pkcs15-syn: fixed resource leak
This commit is contained in:
parent
841d89dda6
commit
3cfb44d704
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue