asterisk/cdr
Mark Michelson 6a539ace84 Fix misuses of asprintf throughout the code.
This fixes three main issues

* Change asprintf() uses to ast_asprintf() so that it
pairs properly with ast_free() and no longer causes
MALLOC_DEBUG to freak out.

* When ast_asprintf() fails, set the pointer NULL if
it will be referenced later.

* Fix some memory leaks that were spotted while taking
care of the first two points.

(Closes issue ASTERISK-20135)
reported by Richard Mudgett

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

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

Merged revisions 371591 from http://svn.asterisk.org/svn/asterisk/branches/10
........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@371593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-08-21 21:01:11 +00:00
..
Makefile Begin on a crusade to end trailing whitespace! 2008-11-20 17:48:58 +00:00
cdr_adaptive_odbc.c Fix setting CDR variables in the hangup extension 2012-03-28 19:39:24 +00:00
cdr_csv.c Clean up cdr.conf parsing for [csv] section 2011-09-13 14:25:43 +00:00
cdr_custom.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
cdr_manager.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
cdr_odbc.c Merged revisions 329614 via svnmerge from 2011-07-27 04:27:19 +00:00
cdr_pgsql.c Clean up and ensure proper usage of alloca() 2012-07-31 20:21:43 +00:00
cdr_radius.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
cdr_sqlite.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
cdr_sqlite3_custom.c Avoid cppcheck warnings; removing unused vars and a bit of cleanup. 2012-04-17 18:57:40 +00:00
cdr_syslog.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
cdr_tds.c Fix misuses of asprintf throughout the code. 2012-08-21 21:01:11 +00:00