From: RĂ©mi Duraffort Date: Fri, 16 Oct 2009 16:27:58 +0000 (+0200) Subject: access_mmsh: fix memleak. X-Git-Tag: 1.1.0-ff~2852 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2668df5ed6c09b7d42624b56a2c8edfa40803dc2;p=vlc access_mmsh: fix memleak. --- diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c index 0f5086cca7..688ad524bc 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 );