Commit a93d03da authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix double free error.

parent 4285aae3
......@@ -528,22 +528,13 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt
rmff_fix_header(header);
if( desc ) {
sdpplin_free( desc );
free( desc );
}
if( desc ) sdpplin_free( desc );
if( buf ) free(buf);
return header;
error:
if( desc ) {
sdpplin_free( desc );
free( desc );
}
if( header ) {
rmff_free_header( header );
free( header );
}
if( desc ) sdpplin_free( desc );
if( header ) rmff_free_header( header );
if( buf ) free( buf );
return NULL;
}
......
......@@ -92,7 +92,7 @@ typedef struct {
int duration;
sdpplin_stream_t **stream;
} sdpplin_t;
sdpplin_t *sdpplin_parse(char *data);
......
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