[vlc-commits] [Git][videolan/vlc][master] resource: fix invalid free

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Dec 31 09:52:55 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
866c621c by Lyndon Brown at 2021-12-31T09:31:06+00:00
resource: fix invalid free

- - - - -


1 changed file:

- src/input/resource.c


Changes:

=====================================
src/input/resource.c
=====================================
@@ -208,8 +208,8 @@ static void DisplayVoutTitle( input_resource_t *p_resource,
             if( asprintf( &psz_string, "%s - %s", psz_name, psz_artist ) > 0 )
             {
                 VoutSetAndDeduplicateTitle( p_vout, &psz_string, ppsz_prev_title );
+                free( psz_string );
             }
-            free( psz_string );
         }
         else if( psz_name )
         {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/866c621c165bc428515b3c18f503f9a26291743c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/866c621c165bc428515b3c18f503f9a26291743c
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list