negligible in
this light.
Regards, Lee.
Tom Lane writes:
Lee Kindness [EMAIL PROTECTED] writes:
Guys, attached is a patch to fix two memory leaks on start-up.
I do not like the changes to miscinit.c. In the first place, it is not
a memory leak to do a one-time allocation of state
See attached diff which corrects a per-thread
memory leak in libecpg and changes the thread test program to create a user
defined number of threads. Also attached tar.gz adds an additional thread test,
which currently does NOT work as expected and is one of the cases Shridar and I
will be
Sorry guys, last diff wasn't a context one! diff -c attached this time
round...
L.
- Original Message -
From: Lee Kindness
To: [EMAIL PROTECTED]
Cc: Bruce Momjian ; Lee Kindness ; Shridhar Daithankar
Sent: Saturday, March 06, 2004 3:07 PM
Subject: ECPG: Update tests memory leak fix
See
AT connection for each and every EXEC SQL call (an item on the TODO).
The test_thread_implicit test program added in the last email will
function as intended with this patch.
Thanks, L.
- Original Message -
From: Lee Kindness
To: [EMAIL PROTECTED]
Cc: Bruce Momjian ; Lee Kindness
/*
* Thread test program
* by Lee Kindness.
*/
/* #define ECPGDEBUG */
#include pthread.h
#include stdlib.h
void *test_thread(void *arg);
EXEC SQL BEGIN DECLARE SECTION;
char *l_dbname;
EXEC SQL END DECLARE SECTION;
int nthreads = 2;
int iterations = 10;
int main(int argc, char *argv