[vlc-commits] input: fix leak in input_SubtitleFile2Uri

Thomas Guillem git at videolan.org
Mon Jun 27 16:10:22 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | 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;
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list