libopensc: invalid 'free' and 'assign NULL' order

This commit is contained in:
Viktor Tarasov 2015-02-24 18:13:53 +01:00
parent 8cf99a9372
commit 1123768ac3
1 changed files with 2 additions and 1 deletions

View File

@ -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)