[vlc-commits] https: double free on alloc error

Rémi Denis-Courmont git at videolan.org
Thu Dec 31 14:46:15 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Dec 31 15:42:49 2015 +0200| [2c27ef472414d3b7ca0c85ce0330086c2f2066d7] | committer: Rémi Denis-Courmont

https: double free on alloc error

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

 modules/access/http/h2conn.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/access/http/h2conn.c b/modules/access/http/h2conn.c
index f772f99..f6d2a01 100644
--- a/modules/access/http/h2conn.c
+++ b/modules/access/http/h2conn.c
@@ -289,7 +289,6 @@ static block_t *vlc_h2_stream_read(struct vlc_http_stream *stream)
     block_t *block = block_heap_Alloc(f, sizeof (*f) + vlc_h2_frame_size(f));
     if (unlikely(block == NULL))
     {
-        free(f);
         vlc_h2_stream_error(conn, s->id, VLC_H2_INTERNAL_ERROR);
         return NULL;
     }



More information about the vlc-commits mailing list