vlc | branch: master | Zhao Zhili <[email protected]> | Wed Jun 10 18:44:12 2015 +0300| [29ed29e64272787e5ee37a76f3ff68a532607c9c] | committer: Rémi Denis-Courmont
fix memory leak in lib/audio.c Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=29ed29e64272787e5ee37a76f3ff68a532607c9c --- lib/audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/audio.c b/lib/audio.c index 4e0bacc..7901c64 100644 --- a/lib/audio.c +++ b/lib/audio.c @@ -86,6 +86,8 @@ libvlc_audio_output_t * item->psz_description = strdup( module_get_name( module, true ) ); if( unlikely(item->psz_name == NULL || item->psz_description == NULL) ) { + free( item->psz_name ); + free( item->psz_description ); free( item ); goto error; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
