- Fix memory leak - free cwc->cwc_cryptoworks_emm.shared_emm before set to NULL, if not NULL it must be malloc'd on line 1839 (case 0x84)

(cherry picked from commit 7eab6185e9)
This commit is contained in:
Benny Morgan 2013-06-30 20:07:38 +02:00 committed by Adam Sutton
parent d124d9ebcb
commit 6f2a33f6c7

View file

@ -1845,6 +1845,8 @@ cwc_emm_cryptoworks(cwc_t *cwc, uint8_t *data, int len)
free(tmp);
} else if (tmp)
free(tmp);
free(cwc->cwc_cryptoworks_emm.shared_emm);
cwc->cwc_cryptoworks_emm.shared_emm = NULL;
cwc->cwc_cryptoworks_emm.shared_len = 0;
}