Fix incorrect usages of ast_realloc().
authorRichard Mudgett <rmudgett@digium.com>
Tue, 10 Sep 2013 18:05:47 +0000 (18:05 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 10 Sep 2013 18:05:47 +0000 (18:05 +0000)
commit83bf017db9804c9274608ded72d70a72c086d756
treea2f9a38495c75235101c86a3572529098fc5800f
parent87cf916cdbcf16d244bd71d91ec5b849cc186923
Fix incorrect usages of ast_realloc().

There are several locations in the code base where this is done:
buf = ast_realloc(buf, new_size);

This is going to leak the original buf contents if the realloc fails.

Review: https://reviewboard.asterisk.org/r/2832/
........

Merged revisions 398757 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 398758 from http://svn.asterisk.org/svn/asterisk/branches/11
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@398760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_dialgroup.c
main/asterisk.c
main/cli.c
main/event.c
main/heap.c
main/indications.c
main/xmldoc.c
res/res_musiconhold.c
res/res_pjsip/pjsip_configuration.c