libopensc: invalid 'free' and 'assign NULL' order
This commit is contained in:
parent
8cf99a9372
commit
1123768ac3
|
@ -112,9 +112,10 @@ static void sc_card_free(sc_card_t *card)
|
|||
free(ep.der.value);
|
||||
}
|
||||
}
|
||||
free(card->algorithms);
|
||||
|
||||
card->algorithms = NULL;
|
||||
card->algorithm_count = 0;
|
||||
free(card->algorithms);
|
||||
}
|
||||
|
||||
if (card->cache.current_ef)
|
||||
|
|
Loading…
Reference in New Issue