Hi,
I found what I think is a small error allocating memory in the
make_persistent_db_connection() function in child.c. The amount of
memory allocated is more than it should be, so it's actually harmless.
I attach a patch for it.
Regards
Index: child.c
===================================================================
RCS file: /cvsroot/pgpool/pgpool-II/child.c,v
retrieving revision 1.26.2.10
diff -u -r1.26.2.10 child.c
--- child.c 14 Nov 2009 13:16:49 -0000 1.26.2.10
+++ child.c 30 Dec 2009 22:22:46 -0000
@@ -1416,13 +1416,13 @@
int len, len1;
int status;
- cp = malloc(sizeof(POOL_CONNECTION_POOL));
+ cp = malloc(sizeof(POOL_CONNECTION_POOL_SLOT));
if (cp == NULL)
{
pool_error("make_persistent_db_connection: could not allocate memory");
return NULL;
}
- memset(cp, 0, sizeof(POOL_CONNECTION_POOL));
+ memset(cp, 0, sizeof(POOL_CONNECTION_POOL_SLOT));
startup_packet = malloc(sizeof(*startup_packet));
if (startup_packet == NULL)
_______________________________________________
Pgpool-general mailing list
[email protected]
http://pgfoundry.org/mailman/listinfo/pgpool-general