vlc | branch: master | Thomas Guillem <[email protected]> | Mon Jun 27 16:10:15 2016 +0200| [e3b894ea252415d9e6a79f28befb0fdbe0bee7fe] | committer: Thomas Guillem
input: fix leak in input_SubtitleFile2Uri > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3b894ea252415d9e6a79f28befb0fdbe0bee7fe --- src/input/input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/input.c b/src/input/input.c index b1d290e..1dec000 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -2997,7 +2997,9 @@ static char *input_SubtitleFile2Uri( input_thread_t *p_input, } } - return vlc_path2uri( psz_subtitle, NULL ); + char *psz_uri = vlc_path2uri( psz_subtitle, NULL ); + free( psz_idxpath ); + return psz_uri; } /***************************************************************************** _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
