]> git.sesse.net Git - vlc/commitdiff
Remove unuse variable (and one memleak in the same time) (CID 201)
authorRémi Duraffort <ivoire@videolan.org>
Sun, 5 Oct 2008 17:01:25 +0000 (19:01 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 5 Oct 2008 17:01:25 +0000 (19:01 +0200)
modules/access/dvb/en50221.c

index e00db711a73fc5c090a6f39cb8bffdbff236e858..3bc957307123cd4408ee26f23051768d2234de0a 100644 (file)
@@ -815,10 +815,8 @@ static int APDUSend( access_t * p_access, int i_session_id, int i_tag,
         }
         else
         {
-            char *psz_hex;
             ca_msg.length = i_size + p - p_apdu;
             if ( i_size == 0 ) ca_msg.length=3;
-            psz_hex = (char*)malloc( ca_msg.length*3 + 1);
             memcpy( ca_msg.msg, p_apdu, i_size + p - p_apdu );
             i_ret = ioctl(p_sys->i_ca_handle, CA_SEND_MSG, &ca_msg );
             if ( i_ret < 0 )