[vlc-commits] access: fix string leak in case of redirect

Thomas Guillem git at videolan.org
Thu Sep 1 16:13:48 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Sep  1 16:11:38 2016 +0200| [b0f06e8f62a0e0a4f7dfc5b0ce32aca7aca42517] | committer: Thomas Guillem

access: fix string leak in case of redirect

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

 src/input/access.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/input/access.c b/src/input/access.c
index 7aa055e..6678c8c 100644
--- a/src/input/access.c
+++ b/src/input/access.c
@@ -128,6 +128,10 @@ static access_t *access_New(vlc_object_t *parent, input_thread_t *input,
                 msg_Err(access, "redirection loop");
                 goto error;
             }
+
+        free(access->psz_filepath);
+        free(access->psz_name);
+        access->psz_filepath = access->psz_name = NULL;
     }
 
     msg_Err(access, "too many redirections");



More information about the vlc-commits mailing list