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
rmff_fix_header(header);
if( desc ) sdpplin_free( desc );
sdpplin_free( desc );
free( buf );
return header;
error:
if( desc ) sdpplin_free( desc );
if( header ) rmff_free_header( header );
sdpplin_free( desc );
rmff_free_header( header );
free( buf );
return NULL;
}
......@@ -725,7 +725,7 @@ rmff_header_t *real_setup_and_get_header(rtsp_client_t *rtsp_session, int bandw
return h;
error:
if( h ) rmff_free_header( h );
rmff_free_header( h );
free( challenge1 );
free( session_id );
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