fix potential memleak.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 30 Jun 2009 14:43:11 +0000 (16:43 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 30 Jun 2009 14:43:11 +0000 (16:43 +0200)
modules/video_filter/erase.c

index 2cbe6c6..c883b25 100644 (file)
@@ -161,6 +161,7 @@ static int Create( vlc_object_t *p_this )
     if( !psz_filename )
     {
         msg_Err( p_filter, "Missing 'mask' option value." );
+        free( p_sys );
         return VLC_EGENERIC;
     }