Index: res/res_config_pgsql.c =================================================================== --- res/res_config_pgsql.c (revision 89682) +++ res/res_config_pgsql.c (working copy) @@ -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) {