asterisk/channels
Corey Farrell ad30d60c69 chan_sip: Fix reference leaks in error paths.
* get_sip_pvt_from_replaces leaks sip_pvt_ptr on any error.
* build_peer leaks peer on failure to allocate the endpoint.

This patch fixes get_sip_pvt by using an RAII_VAR, build_peer is fixed
with an unref in the appropriate place.

ASTERISK-26184 #close

Change-Id: I728b424648ad041409f7d90880f4c28b3ce2ca12
2016-07-09 13:39:01 -05:00
..
dahdi Modules: Make ast_module_info->self available to auxiliary sources. 2015-05-04 20:47:01 -04:00
iax2 git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
misdn Makefile: Remove coverage files on 'make clean' 2015-07-04 07:47:06 -05:00
pjsip chan_pjsip: Add 'pjsip show channelstats' 2016-03-29 14:35:31 -05:00
sip chan_sip.c: Fix registration timeout and expire deadlock potential. 2016-03-16 14:44:52 -05:00
Makefile Makefile: Remove coverage files on 'make clean' 2015-07-04 07:47:06 -05:00
chan_alsa.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_bridge_media.c AST_MODULE_INFO: Format corrections to the usages of AST_MODULE_INFO macro. 2015-05-13 16:34:23 -05:00
chan_console.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_dahdi.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_dahdi.h chan_dahdi/sig_analog: Fix distinctive ring detection to suck less. 2015-03-06 20:24:58 +00:00
chan_iax2.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_mgcp.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_misdn.c chan_misdn: Fix a few issues causing compile errors 2016-02-05 11:58:54 -06:00
chan_motif.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_nbs.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_oss.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_phone.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_phone.h rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it 2008-05-28 20:00:21 +00:00
chan_pjsip.c res_pjsip: Add missing NULL checks when using pjsip_inv_end_session(). 2016-06-30 15:40:38 -05:00
chan_rtp.c chan_rtp.c: Simplify options to UnicastRTP channel creation. 2016-06-06 17:05:43 -05:00
chan_sip.c chan_sip: Fix reference leaks in error paths. 2016-07-09 13:39:01 -05:00
chan_skinny.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_unistim.c BuildSystem: Fix a few issues hightlighted by gcc 6.x 2016-06-28 12:40:49 -05:00
chan_vpb.cc ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
console_board.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
console_gui.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_video.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
console_video.h implement the 'freeze' function for incoming frames; 2008-06-30 15:45:15 +00:00
misdn_config.c chan_misdn: Fix a few issues causing compile errors 2016-02-05 11:58:54 -06:00
sig_analog.c build_system: Fix some warnings highlighted by clang 2016-02-01 19:22:40 -06:00
sig_analog.h chan_dahdi/sig_analog: Fix distinctive ring detection to suck less. 2015-03-06 20:24:58 +00:00
sig_pri.c build: GCC 5.1.x catches some new const, array bounds and missing paren issues 2015-10-24 16:08:54 -05:00
sig_pri.h sig_pri.h: force_restart_unavailable_chans in wrong scope 2015-07-17 11:02:24 -05:00
sig_ss7.c Logger: Convert 'struct ast_callid' to unsigned int. 2015-03-13 01:12:35 +00:00
sig_ss7.h chan_dahdi: Adds support for major update to libss7. 2014-06-16 18:27:51 +00:00
vcodecs.c Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 10:23:32 +00:00
vgrabbers.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00