]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
cwc: cryptoworks - remove double malloc in the emm code
authorJaroslav Kysela <perex@perex.cz>
Fri, 8 Mar 2013 10:56:09 +0000 (10:56 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 8 Mar 2013 22:23:02 +0000 (22:23 +0000)
(cherry picked from commit 033495993ecf9f85f8ce9afbc908c4987cc37e11)

src/cwc.c

index ebafd4ff31c987050d5c4b4db3c7d40b85fe7de4..9c7e90dc45bfd59b7ae4735119cd9ea83cbc3d80 100644 (file)
--- 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) {