[vlc-commits] [Git][videolan/vlc][master] video_chroma/gst: fix potential leak in fmt_intermediate
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Sep 30 08:14:06 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
8cc15834 by Steve Lhomme at 2025-09-30T08:01:11+00:00
video_chroma/gst: fix potential leak in fmt_intermediate
- - - - -
1 changed file:
- modules/video_chroma/gst_mem.c
Changes:
=====================================
modules/video_chroma/gst_mem.c
=====================================
@@ -93,11 +93,15 @@ static int Open(filter_t *p_filter)
filter_chain_t *p_chain = filter_chain_NewVideo(p_filter, false, &p_filter->owner);
if (p_chain == NULL)
+ {
+ es_format_Clean(&fmt_intermediate);
return VLC_ENOMEM;
+ }
filter_chain_Reset(p_chain, &p_filter->fmt_in, p_filter->vctx_in, &p_filter->fmt_out);
int ret;
ret = filter_chain_AppendConverter(p_chain, &fmt_intermediate);
+ es_format_Clean(&fmt_intermediate);
if (ret != VLC_SUCCESS)
return ret;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8cc1583480ab48334bfdc68a342f6850f0409884
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8cc1583480ab48334bfdc68a342f6850f0409884
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