[vlc-commits] Fix potential double free (cid #1047501 and #1047502))
Rémi Duraffort
git at videolan.org
Sat Jul 13 15:31:24 CEST 2013
vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 08:17:56 2013 +0200| [d766f76d016e16a355c1f7832d2bd0746d01c06a] | committer: Jean-Baptiste Kempf
Fix potential double free (cid #1047501 and #1047502))
(cherry picked from commit cb55a7eea92225211d10fbf04e354d676f2bbd94)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=d766f76d016e16a355c1f7832d2bd0746d01c06a
---
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