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

stream: fix memory leak on error

parent 4501129e
...@@ -64,6 +64,7 @@ stream_t *stream_MemoryNew( vlc_object_t *p_this, uint8_t *p_buffer, ...@@ -64,6 +64,7 @@ stream_t *stream_MemoryNew( vlc_object_t *p_this, uint8_t *p_buffer,
if( !s->psz_path || !s->p_sys ) if( !s->psz_path || !s->p_sys )
{ {
stream_CommonDelete( s ); stream_CommonDelete( s );
free( p_sys );
return NULL; return NULL;
} }
p_sys->i_pos = 0; p_sys->i_pos = 0;
......
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