]> git.sesse.net Git - vlc/commitdiff
Fix memory leak
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 13 Aug 2006 14:31:02 +0000 (14:31 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 13 Aug 2006 14:31:02 +0000 (14:31 +0000)
modules/audio_filter/converter/a52tofloat32.c

index 400bbd98ec5a3bba1cf0c7124692bec2b2a01527..1bb43098baa887833549287655bc105fb21a1ba1 100644 (file)
@@ -436,14 +436,6 @@ static int OpenFilter( vlc_object_t *p_this )
         p_filter->fmt_out.i_codec = VLC_FOURCC('f','l','3','2');
 #endif
 
-    /* Allocate the memory needed to store the module's structure */
-    p_sys = p_filter->p_sys = malloc( sizeof(filter_sys_t) );
-    if( p_sys == NULL )
-    {
-        msg_Err( p_filter, "out of memory" );
-        return VLC_EGENERIC;
-    }
-
     /* Allocate the memory needed to store the module's structure */
     p_filter->p_sys = p_sys = malloc( sizeof(filter_sys_t) );
     if( p_sys == NULL )