[vlc-devel] commit: Remove unuse variable (and one memleak in the same time) (CID 201) ( Rémi Duraffort )

git version control git at videolan.org
Mon Oct 6 15:46:46 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Duraffort <ivoire at videolan.org> | Sun Oct  5 19:01:25 2008 +0200| [170aa7ee0dfd78fec0351878c76f27143d5b1587] | committer: Derk-Jan Hartman 

Remove unuse variable (and one memleak in the same time) (CID 201)
(cherry picked from commit 44286759a7863935c65756d25301f5c9528a4deb)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=170aa7ee0dfd78fec0351878c76f27143d5b1587
---

 modules/access/dvb/en50221.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/modules/access/dvb/en50221.c b/modules/access/dvb/en50221.c
index 9a78e97..9694315 100644
--- a/modules/access/dvb/en50221.c
+++ b/modules/access/dvb/en50221.c
@@ -810,10 +810,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 )




More information about the vlc-devel mailing list