[vlc-commits] stream: fix possible memory leak
Arjun Sreedharan
git at videolan.org
Sat Aug 15 12:27:37 CEST 2015
vlc | branch: master | Arjun Sreedharan <arjun024 at gmail.com> | Sat Aug 15 13:25:47 2015 +0300| [bf4d99afcf1110ea4a6c6451d90689daa55ee801] | committer: Rémi Denis-Courmont
stream: fix possible memory leak
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf4d99afcf1110ea4a6c6451d90689daa55ee801
---
src/input/stream_access.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/input/stream_access.c b/src/input/stream_access.c
index 26b97d8..da03808 100644
--- a/src/input/stream_access.c
+++ b/src/input/stream_access.c
@@ -200,6 +200,7 @@ stream_t *stream_AccessNew( access_t *p_access )
s->p_sys = p_sys = malloc( sizeof( *p_sys ) );
if( !s->psz_url || !s->p_sys )
{
+ free( s->p_sys );
stream_CommonDelete( s );
return NULL;
}
More information about the vlc-commits
mailing list