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:
Corey Farrell
2017-12-19 00:17:08 -05:00
parent 11a1e07ad2
commit bf33a09c37
3 changed files with 4 additions and 4 deletions

View File

@@ -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,