Commit e3790d5a authored by JP Dinger's avatar JP Dinger

sdpplin_free() and rmff_free_header() already check for NULL.

parent f4b9b232
...@@ -519,13 +519,13 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt ...@@ -519,13 +519,13 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt
rmff_fix_header(header); rmff_fix_header(header);
if( desc ) sdpplin_free( desc ); sdpplin_free( desc );
free( buf ); free( buf );
return header; return header;
error: error:
if( desc ) sdpplin_free( desc ); sdpplin_free( desc );
if( header ) rmff_free_header( header ); rmff_free_header( header );
free( buf ); free( buf );
return NULL; return NULL;
} }
...@@ -725,7 +725,7 @@ rmff_header_t *real_setup_and_get_header(rtsp_client_t *rtsp_session, int bandw ...@@ -725,7 +725,7 @@ rmff_header_t *real_setup_and_get_header(rtsp_client_t *rtsp_session, int bandw
return h; return h;
error: error:
if( h ) rmff_free_header( h ); rmff_free_header( h );
free( challenge1 ); free( challenge1 );
free( session_id ); free( session_id );
free( description ); free( description );
......
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