[vlc-commits] [Git][videolan/vlc][master] filter_chain: fix memory leak on name_chained
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Thu Mar 13 14:00:36 UTC 2025
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
a0731bc1 by Alexandre Janniaux at 2025-03-13T13:47:01+00:00
filter_chain: fix memory leak on name_chained
Regression from fe26ba9b11d30b8ca2f6682fef47dbed0c1f51c3.
- - - - -
1 changed file:
- src/misc/filter_chain.c
Changes:
=====================================
src/misc/filter_chain.c
=====================================
@@ -351,6 +351,7 @@ static filter_t *filter_chain_AppendInner( filter_chain_t *chain,
msg_Dbg( chain->obj, "Filter '%s' (%p) appended to chain (%p)",
(name != NULL) ? name : module_GetShortName(filter->p_module),
(void *)filter, (void *)chain );
+ free(name_chained);
return filter;
error:
@@ -358,6 +359,7 @@ error:
msg_Err( chain->obj, "Failed to create %s '%s'", capability, name );
else
msg_Err( chain->obj, "Failed to create %s", capability );
+ free(name_chained);
vlc_objres_clear(&filter->obj);
es_format_Clean( &filter->fmt_out );
es_format_Clean( &filter->fmt_in );
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a0731bc13cccfa64eaf377e41c7550a4ed91694b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a0731bc13cccfa64eaf377e41c7550a4ed91694b
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