Re: [PATCHES] PATCH: Memory leaks on start-up

2003-07-22 Thread Lee Kindness
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

[PATCHES] ECPG: Update tests memory leak fix

2004-03-06 Thread Lee Kindness
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

Re: [PATCHES] Update tests memory leak fix

2004-03-06 Thread Lee Kindness
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

[PATCHES] ECPG - Remove need for AT connection when using threads

2004-03-07 Thread Lee Kindness
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

Re: [PATCHES] ECPG - Remove need for AT connection when using threads

2004-03-15 Thread 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