1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> to

fix segfault on non-glibc systems.
This commit is contained in:
Michael Meskes
2008-12-17 16:52:07 +00:00
parent dcf8409985
commit e05c5a908b
3 changed files with 36 additions and 47 deletions

View File

@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.51 2008/05/16 15:20:03 petere Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.52 2008/12/17 16:52:07 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@ -144,7 +144,7 @@ ecpg_finish(struct connection * act)
if (actual_connection == act)
actual_connection = all_connections;
ecpg_log("ecpg_finish: connection %s closed\n", act->name);
ecpg_log("ecpg_finish: connection %s closed\n", act->name ? act->name : "(null)");
for (cache = act->cache_head; cache; ptr = cache, cache = cache->next, ecpg_free(ptr));
ecpg_free(act->name);