[vlc-commits] [Git][videolan/vlc][master] access: dvdread: fix leaks on error

Tristan Matthews (@tmatth) gitlab at videolan.org
Sun Sep 28 07:20:09 UTC 2025



Tristan Matthews pushed to branch master at VideoLAN / VLC


Commits:
90a6f422 by Tristan Matthews at 2025-09-28T06:59:22+00:00
access: dvdread: fix leaks on error

Fixes CID 1666125

- - - - -


1 changed file:

- modules/access/dvdread.c


Changes:

=====================================
modules/access/dvdread.c
=====================================
@@ -282,6 +282,7 @@ static int OpenCommon( vlc_object_t *p_this , dvd_type_t type )
     switch (type) {
         case DVD_A:
             msg_Err( p_demux, "Version of libdvdread does not support DVD-audio" );
+            free( psz_file );
             return VLC_EGENERIC;
         default:
             p_dvdread = DVDOpen2( p_demux, &cbs, psz_path );
@@ -291,6 +292,7 @@ static int OpenCommon( vlc_object_t *p_this , dvd_type_t type )
     switch (type) {
         case DVD_A:
             msg_Err( p_demux, "Version of libdvdread does not support DVD-audio" );
+            free( psz_file );
             return VLC_EGENERIC;
         default:
             dvd_reader_t *p_dvdread = DVDOpen( psz_path );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/90a6f422e18492f297410a9e915c0c22802e1d25

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


VideoLAN code repository instance


More information about the vlc-commits mailing list