cwc: cryptoworks - remove double malloc in the emm code

This commit is contained in:
Jaroslav Kysela 2013-03-08 10:56:09 +00:00 committed by Adam Sutton
parent 81c48b1de1
commit 033495993e

View file

@ -1816,7 +1816,6 @@ cwc_emm_cryptoworks(cwc_t *cwc, uint8_t *data, int len)
if (cwc->cwc_cryptoworks_emm.shared_emm) {
free(cwc->cwc_cryptoworks_emm.shared_emm);
cwc->cwc_cryptoworks_emm.shared_len = 0;
cwc->cwc_cryptoworks_emm.shared_emm = (uint8_t *)malloc(len);
}
cwc->cwc_cryptoworks_emm.shared_emm = malloc(len);
if (cwc->cwc_cryptoworks_emm.shared_emm) {