[vlc-commits] Fix potential double free (cid #1047501 and #1047502))
Rémi Duraffort
git at videolan.org
Sat Jul 13 08:43:16 CEST 2013
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 08:17:56 2013 +0200| [cb55a7eea92225211d10fbf04e354d676f2bbd94] | committer: Rémi Duraffort
Fix potential double free (cid #1047501 and #1047502))
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb55a7eea92225211d10fbf04e354d676f2bbd94
---
modules/misc/rtsp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index 333d449..92f4bc3 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -279,8 +279,6 @@ static int Open( vlc_object_t *p_this )
p_sys->psz_path = strdup( url.psz_path ? url.psz_path : "/" );
- vlc_UrlClean( &url );
-
TAB_INIT( p_sys->i_media, p_sys->media );
p_sys->i_media_id = 0;
@@ -296,6 +294,7 @@ static int Open( vlc_object_t *p_this )
goto error;
}
+ vlc_UrlClean( &url );
return VLC_SUCCESS;
error:
More information about the vlc-commits
mailing list