[vlc-commits] transcode: fix memory leak

Rémi Duraffort git at videolan.org
Thu Jan 2 09:27:52 CET 2014


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Jan  1 20:33:04 2014 +0100| [9ae6571a0b18d4e2b752fed9c212f886442dcef9] | committer: Rémi Duraffort

transcode: fix memory leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ae6571a0b18d4e2b752fed9c212f886442dcef9
---

 modules/stream_out/transcode/transcode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/transcode/transcode.c b/modules/stream_out/transcode/transcode.c
index 3f29dcf..4e994dd 100644
--- a/modules/stream_out/transcode/transcode.c
+++ b/modules/stream_out/transcode/transcode.c
@@ -444,7 +444,7 @@ static int Open( vlc_object_t *p_this )
         char *psz_next;
 
         psz_next = config_ChainCreate( &p_sys->psz_osdenc,
-                                   &p_sys->p_osd_cfg, strdup( "dvbsub") );
+                                   &p_sys->p_osd_cfg, "dvbsub" );
         free( psz_next );
 
         p_sys->i_osdcodec = VLC_CODEC_YUVP;



More information about the vlc-commits mailing list