Commit 264444a1 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

ts: double free (CID 245)

parent 1674ba7c
...@@ -857,7 +857,6 @@ static void Close( vlc_object_t *p_this ) ...@@ -857,7 +857,6 @@ static void Close( vlc_object_t *p_this )
if( p_sys->b_udp_out ) if( p_sys->b_udp_out )
{ {
net_Close( p_sys->fd ); net_Close( p_sys->fd );
free( p_sys->buffer );
} }
vlc_mutex_lock( &p_sys->csa_lock ); vlc_mutex_lock( &p_sys->csa_lock );
if( p_sys->csa ) if( p_sys->csa )
...@@ -889,10 +888,9 @@ static void Close( vlc_object_t *p_this ) ...@@ -889,10 +888,9 @@ static void Close( vlc_object_t *p_this )
fclose( p_sys->p_file ); fclose( p_sys->p_file );
p_sys->p_file = NULL; p_sys->p_file = NULL;
} }
free( p_sys->buffer );
} }
free( p_sys->buffer );
free( p_sys->psz_file ); free( p_sys->psz_file );
p_sys->psz_file = NULL; p_sys->psz_file = 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