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 ...@@ -528,22 +528,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 ) { if( desc ) sdpplin_free( desc );
sdpplin_free( desc );
free( desc );
}
if( buf ) free(buf); if( buf ) free(buf);
return header; return header;
error: error:
if( desc ) { if( desc ) sdpplin_free( desc );
sdpplin_free( desc ); if( header ) rmff_free_header( header );
free( desc );
}
if( header ) {
rmff_free_header( header );
free( header );
}
if( buf ) free( buf ); if( buf ) free( buf );
return NULL; return 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