[vlc-devel] commit: access_mmsh: fix memleak. ( Rémi Duraffort )

git version control git at videolan.org
Fri Oct 16 18:29:39 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Oct 16 18:27:58 2009 +0200| [2668df5ed6c09b7d42624b56a2c8edfa40803dc2] | committer: Rémi Duraffort 

access_mmsh: fix memleak.

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

 modules/access/mms/mmsh.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c
index 0f5086c..688ad52 100644
--- a/modules/access/mms/mmsh.c
+++ b/modules/access/mms/mmsh.c
@@ -428,6 +428,8 @@ static int Restart( access_t *p_access )
         msg_Err( p_access, "describe failed" );
         return VLC_EGENERIC;
     }
+    free( psz_location );
+
     /* */
     if( Start( p_access, 0 ) )
     {
@@ -672,6 +674,7 @@ static int Describe( access_t  *p_access, char **ppsz_location )
         *ppsz_location = psz_location;
         return VLC_SUCCESS;
     }
+    free( psz_location );
 
     /* Read the asf header */
     GetHeader( p_access );




More information about the vlc-devel mailing list