Commit 0274be87 authored by Rémi Duraffort's avatar Rémi Duraffort

The last but not the least commit about these useless tests.

parent 7326fad1
...@@ -263,10 +263,10 @@ static int Open( vlc_object_t *p_this ) ...@@ -263,10 +263,10 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if( psz_name ) free( psz_name ); free( psz_name );
if( psz_description ) free( psz_description ); free( psz_description );
if( psz_genre ) free( psz_genre ); free( psz_genre );
if( psz_url ) free( psz_url ); free( psz_url );
var_Get( p_access, SOUT_CFG_PREFIX "mp3", &val ); var_Get( p_access, SOUT_CFG_PREFIX "mp3", &val );
if( val.b_bool == VLC_TRUE ) if( val.b_bool == VLC_TRUE )
......
...@@ -399,7 +399,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this ) ...@@ -399,7 +399,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_sys->i_aac_profile = FF_PROFILE_UNKNOWN; p_sys->i_aac_profile = FF_PROFILE_UNKNOWN;
} }
} }
if( val.psz_string ) free( val.psz_string ); free( val.psz_string );
#endif #endif
if( p_enc->fmt_in.i_cat == VIDEO_ES ) if( p_enc->fmt_in.i_cat == VIDEO_ES )
......
...@@ -390,7 +390,7 @@ static void MacroDo( httpd_file_sys_t *p_args, ...@@ -390,7 +390,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
} }
} }
if( p_items ) free( p_items ); free( p_items );
break; break;
} }
case MVLC_KEEP: case MVLC_KEEP:
...@@ -432,7 +432,7 @@ static void MacroDo( httpd_file_sys_t *p_args, ...@@ -432,7 +432,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
} }
} }
if( p_items ) free( p_items ); free( p_items );
break; break;
} }
case MVLC_EMPTY: case MVLC_EMPTY:
......
...@@ -626,8 +626,7 @@ mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name, ...@@ -626,8 +626,7 @@ mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name,
} }
free( psz_dir ); free( psz_dir );
if( ppsz_dir_content != NULL ) free( ppsz_dir_content );
free( ppsz_dir_content );
return s; return s;
} }
......
...@@ -158,7 +158,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -158,7 +158,7 @@ static void Run( intf_thread_t *p_intf )
else else
i_socket = net_ConnectUDP( VLC_OBJECT(p_intf), psz_master, NETSYNC_PORT, 0 ); i_socket = net_ConnectUDP( VLC_OBJECT(p_intf), psz_master, NETSYNC_PORT, 0 );
if( psz_master ) free( psz_master ); free( psz_master );
if( i_socket < 0 ) if( i_socket < 0 )
{ {
......
...@@ -1270,7 +1270,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1270,7 +1270,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
&val, &text ); &val, &text );
msg_rc( "+----[ end of %s ]", val_name.psz_string ); msg_rc( "+----[ end of %s ]", val_name.psz_string );
if( val_name.psz_string ) free( val_name.psz_string ); free( val_name.psz_string );
i_error = VLC_SUCCESS; i_error = VLC_SUCCESS;
} }
...@@ -1778,7 +1778,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1778,7 +1778,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
&val, &text ); &val, &text );
msg_rc( "+----[ end of %s ]", val_name.psz_string ); msg_rc( "+----[ end of %s ]", val_name.psz_string );
if( val_name.psz_string ) free( val_name.psz_string ); free( val_name.psz_string );
i_error = VLC_SUCCESS; i_error = VLC_SUCCESS;
} }
...@@ -1865,7 +1865,7 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1865,7 +1865,7 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
&val, &text ); &val, &text );
msg_rc( "+----[ end of %s ]", val_name.psz_string ); msg_rc( "+----[ end of %s ]", val_name.psz_string );
if( val_name.psz_string ) free( val_name.psz_string ); free( val_name.psz_string );
i_error = VLC_SUCCESS; i_error = VLC_SUCCESS;
} }
else else
...@@ -1933,12 +1933,12 @@ static int Menu( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1933,12 +1933,12 @@ static int Menu( vlc_object_t *p_this, char const *psz_cmd,
{ {
msg_rc( _("Please provide one of the following parameters:") ); msg_rc( _("Please provide one of the following parameters:") );
msg_rc( "[on|off|up|down|left|right|select]" ); msg_rc( "[on|off|up|down|left|right|select]" );
if( val.psz_string ) free( val.psz_string ); free( val.psz_string );
return i_error; return i_error;
} }
i_error = VLC_SUCCESS; i_error = VLC_SUCCESS;
if( val.psz_string ) free( val.psz_string ); free( val.psz_string );
return i_error; return i_error;
} }
......
...@@ -230,7 +230,7 @@ static void Close( vlc_object_t *p_this ) ...@@ -230,7 +230,7 @@ static void Close( vlc_object_t *p_this )
free( cl ); free( cl );
p_sys->clients[i] = NULL; p_sys->clients[i] = NULL;
} }
if( p_sys->clients != NULL ) free( p_sys->clients ); free( p_sys->clients );
net_ListenClose( p_sys->pi_fd ); net_ListenClose( p_sys->pi_fd );
...@@ -515,8 +515,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -515,8 +515,7 @@ static void Run( intf_thread_t *p_intf )
TAB_APPEND( p_sys->i_clients, p_sys->clients, cl ); TAB_APPEND( p_sys->i_clients, p_sys->clients, cl );
} }
} }
if( psz_password ) free( psz_password );
free( psz_password );
} }
static void Write_message( telnet_client_t *client, vlm_message_t *message, static void Write_message( telnet_client_t *client, vlm_message_t *message,
...@@ -526,7 +525,7 @@ static void Write_message( telnet_client_t *client, vlm_message_t *message, ...@@ -526,7 +525,7 @@ static void Write_message( telnet_client_t *client, vlm_message_t *message,
client->p_buffer_read = client->buffer_read; client->p_buffer_read = client->buffer_read;
(client->p_buffer_read)[0] = 0; // if (cl->p_buffer_read)[0] = '\n' (client->p_buffer_read)[0] = 0; // if (cl->p_buffer_read)[0] = '\n'
if( client->buffer_write ) free( client->buffer_write ); free( client->buffer_write );
/* generate the psz_message string */ /* generate the psz_message string */
if( message ) if( message )
......
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