cwc: cryptoworks - remove double malloc in the emm code

(cherry picked from commit 033495993e)
This commit is contained in:
Jaroslav Kysela 2013-03-08 10:56:09 +00:00 committed by Adam Sutton
parent db2f4d1e41
commit 9ba91b7172

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