res_rtp_asterisk: Fix ref leaks in ast_rtcp_read().
authorRichard Mudgett <rmudgett@digium.com>
Sat, 21 Sep 2013 04:49:26 +0000 (04:49 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Sat, 21 Sep 2013 04:49:26 +0000 (04:49 +0000)
commitec5a72471465ec8a2661cea9d40184e6e9d1b33b
tree320fd341de6eda1d04222f792cfbfae2849abcd9
parent46da169b6dcb36bd35177d69f492aa0ae750070e
res_rtp_asterisk: Fix ref leaks in ast_rtcp_read().

Moved rtcp_report RAII_VAR declaration into the loop so it is unref'ed
after every loop.  Moved message_blob to loop and switched it to a regular
variable.  The regular variable was used since message_blob is used in a
very contained way.

(closes issue ASTERISK-22565)
Reported by: Corey Farrell
Patches:
      rtcp_report-leak.patch (license #5909) patch uploaded by Corey Farrell
Tested by: Corey Farrell
........

Merged revisions 399607 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@399608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_rtp_asterisk.c