]> git.sesse.net Git - vlc/commitdiff
access_mmsh: fix memleak.
authorRémi Duraffort <ivoire@videolan.org>
Fri, 16 Oct 2009 16:27:58 +0000 (18:27 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 16 Oct 2009 16:29:49 +0000 (18:29 +0200)
modules/access/mms/mmsh.c

index 0f5086cca7b570b549fd0e3612f6d07aee881da7..688ad524bca261dbf8a7bdb7505c01c7fbd04588 100644 (file)
@@ -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 );