]> git.sesse.net Git - vlc/blobdiff - modules/access/vdr.c
Fix potential double free (cid #1047496 and #1047497)
[vlc] / modules / access / vdr.c
index ddf1a96573931795ada2eacf2bf577448e6a7eb0..72de3478acb21236d8e2b1f5666a0e9c9679882d 100644 (file)
@@ -50,7 +50,7 @@ See http://www.vdr-wiki.de/ and http://www.tvdr.de/ for more information.
 #include <fcntl.h>
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
-#elif defined( WIN32 )
+#elif defined( _WIN32 )
 #   include <io.h>
 #endif
 
@@ -202,8 +202,6 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    free( p_access->psz_demux );
-    p_access->psz_demux = strdup( "ts" );
     return VLC_SUCCESS;
 }