Commit 2c27ef47 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

https: double free on alloc error

parent 5adb1307
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment