mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
core: Fix multiple trivial issues in the core.
* Fix small leaks in from error conditions in sdp.c and translate.c. * Check new file descriptor is less than 0, not less than or equal. Change-Id: Id7782775486175c739e0c4bf3ea5e17e3f452a99
This commit is contained in:
@@ -845,6 +845,7 @@ static struct ast_stream *get_stream_from_m(const struct ast_sdp_a_lines *a_line
|
||||
rtp_codecs_free(codecs);
|
||||
ast_stream_free(stream);
|
||||
ao2_ref(caps, -1);
|
||||
ast_free(codecs);
|
||||
return NULL;
|
||||
}
|
||||
ast_stream_set_data(stream, AST_STREAM_DATA_RTP_CODECS, codecs,
|
||||
|
Reference in New Issue
Block a user