asterisk/cel
Matthew Jordan d88f91c8d0 Fix memory leak when CEL is successfully written to PostgreSQL database
PQClear is not called when the result object of a call to PQExec has a
status of PGRES_COMMAND_OK.  Interestingly enough, the off nominal case was
handled properly, so this memory leak only occurred when CEL records were
successfully written.

This patch properly clears the result in the nominal code path.

(closes issue ASTERISK-19991)
Reported by: Etienne Lessard
Tested by: Etienne Lessard
patches:
  mem_leak_cel_pgsql.patch uploaded by Etienne Lessard (license #6394)
........

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

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

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@372176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-09-05 02:26:54 +00:00
..
Makefile Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
cel_custom.c Merged revisions 337974 via svnmerge from 2011-09-26 19:40:12 +00:00
cel_manager.c Remove inconsistency in CEL eventtype for user defined events. 2012-02-01 17:42:15 +00:00
cel_odbc.c Handle numeric columns for eventtype properly in cel_odbc 2012-03-07 21:28:55 +00:00
cel_pgsql.c Fix memory leak when CEL is successfully written to PostgreSQL database 2012-09-05 02:26:54 +00:00
cel_radius.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
cel_sqlite3_custom.c Fix lock typo that should be unlock in cel_sqlite_custom reload. 2012-02-14 18:16:26 +00:00
cel_tds.c Remove inconsistency in CEL eventtype for user defined events. 2012-02-01 17:42:15 +00:00