[vlc-commits] [Git][videolan/vlc][master] demux: heif: fix leaking image_handler_t on block allocation error

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Sep 17 07:53:52 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
08d5e641 by Steve Lhomme at 2025-09-17T07:39:20+00:00
demux: heif: fix leaking image_handler_t on block allocation error

Fixes #29310

- - - - -


1 changed file:

- modules/demux/mp4/heif.c


Changes:

=====================================
modules/demux/mp4/heif.c
=====================================
@@ -673,7 +673,10 @@ static int DerivedImageAssembleGrid( demux_t *p_demux, uint32_t i_grid_item_id,
     block_t *p_block = block_Alloc( derivation_data.ImageGrid.output_width *
                                     derivation_data.ImageGrid.output_height * 4 );
     if( !p_block )
+    {
+        image_HandlerDelete( handler );
         return VLC_EGENERIC;
+    }
     *pp_block = p_block;
 
     es_format_Init( fmt, VIDEO_ES, VLC_CODEC_RGBA );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/08d5e641da236a719a3c2d8f6f45af42fa3491bb

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/08d5e641da236a719a3c2d8f6f45af42fa3491bb
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