From: Jaroslav Kysela Date: Fri, 8 Mar 2013 10:56:09 +0000 (+0000) Subject: cwc: cryptoworks - remove double malloc in the emm code X-Git-Tag: v3.9~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=033495993ecf9f85f8ce9afbc908c4987cc37e11;p=thirdparty%2Ftvheadend.git cwc: cryptoworks - remove double malloc in the emm code --- diff --git a/src/cwc.c b/src/cwc.c index ebafd4ff3..9c7e90dc4 100644 --- a/src/cwc.c +++ b/src/cwc.c @@ -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) {