[vlc-devel] commit: Fixed a small memleak in bda. (Laurent Aimar )

git version control git at videolan.org
Tue Oct 13 21:09:50 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Oct  9 20:47:49 2009 +0200| [8844919a0851a91908f19774f8cf795fe52d8d81] | committer: Laurent Aimar 

Fixed a small memleak in bda.

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

 modules/access/bda/bda.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/access/bda/bda.c b/modules/access/bda/bda.c
index aba6924..a063c42 100644
--- a/modules/access/bda/bda.c
+++ b/modules/access/bda/bda.c
@@ -420,10 +420,15 @@ static int Open( vlc_object_t *p_this )
     }
 
     if( !i_ret )
+    {
+        free( p_access->psz_demux );
         p_access->psz_demux = strdup( "ts" );
+    }
     else
+    {
         msg_Warn( p_access, "DVB_Open: Unsupported Network %s",
                   p_access->psz_access);
+    }
     return i_ret;
 }
 




More information about the vlc-devel mailing list