[vlc-commits] [Git][videolan/vlc][master] codec: stl: fix leak on error
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Sep 24 06:54:16 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
190809cd by Marvin Scholz at 2025-09-24T06:10:40+00:00
codec: stl: fix leak on error
- - - - -
1 changed file:
- modules/codec/stl.c
Changes:
=====================================
modules/codec/stl.c
=====================================
@@ -478,8 +478,10 @@ static int Open(vlc_object_t *object)
return VLC_ENOMEM;
int rc = ParseGSI(dec, sys);
- if (VLC_SUCCESS != rc)
+ if (VLC_SUCCESS != rc) {
+ free(sys);
return rc;
+ }
for(size_t i=0; i<=STL_GROUPS_MAX; i++)
sys->groups[i].pp_segment_last = &sys->groups[i].p_segment;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/190809cdb7051576347bb12b2dd9b5a4310a35d8
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/190809cdb7051576347bb12b2dd9b5a4310a35d8
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