]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/logo.c
Fix potential memleak.
[vlc] / modules / video_filter / logo.c
index f274dc2f67195a23c325834129e5d80296d259bd..37e51f26e70ee13b2665c4b8a2b2d30119be9088 100644 (file)
@@ -331,6 +331,8 @@ static int Create( vlc_object_t *p_this )
     if( !p_logo_list->psz_filename || !*p_logo_list->psz_filename )
     {
         msg_Err( p_vout, "logo file not specified" );
+        free( p_logo_list->psz_filename );
+        free( p_sys );
         return VLC_EGENERIC;
     }