[svn-commits] mmichelson: branch 1.4 r89727 - /branches/1.4/res/res_config_pgsql.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 27 14:22:59 CST 2007


Author: mmichelson
Date: Tue Nov 27 14:22:59 2007
New Revision: 89727

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89727
Log:
Changing some calls from free() to ast_free() since they were allocated with
ast_calloc().

(closes issue #11390, reported and patched by Laureano)


Modified:
    branches/1.4/res/res_config_pgsql.c

Modified: branches/1.4/res/res_config_pgsql.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_config_pgsql.c?view=diff&rev=89727&r1=89726&r2=89727
==============================================================================
--- branches/1.4/res/res_config_pgsql.c (original)
+++ branches/1.4/res/res_config_pgsql.c Tue Nov 27 14:22:59 2007
@@ -187,7 +187,7 @@
 				}
 			}
 		}
-		free(fieldnames);
+		ast_free(fieldnames);
 	} else {
 		ast_log(LOG_WARNING,
 				"Postgresql RealTime: Could not find any rows in table %s.\n", table);
@@ -335,7 +335,7 @@
 			}
 			ast_category_append(cfg, cat);
 		}
-		free(fieldnames);
+		ast_free(fieldnames);
 	} else {
 		ast_log(LOG_WARNING,
 				"Postgresql RealTime: Could not find any rows in table %s.\n", table);
@@ -717,7 +717,7 @@
 		ast_log(LOG_DEBUG, "%u connInfo=%s\n", size, connInfo);
 		pgsqlConn = PQconnectdb(connInfo);
 		ast_log(LOG_DEBUG, "%u connInfo=%s\n", size, connInfo);
-		free(connInfo);
+		ast_free(connInfo);
 		connInfo = NULL;
 		ast_log(LOG_DEBUG, "pgsqlConn=%p\n", pgsqlConn);
 		if (pgsqlConn && PQstatus(pgsqlConn) == CONNECTION_OK) {




More information about the svn-commits mailing list