Re: [vchkpw] Memleak when using vpopmail with mysql, but without --enable-mysql-limits. + patch

2006-11-28 Thread Tijs Zwinkels
Sorry for the late reply, i simply missed your mail until now. I don't know if that's always the case, but in my case: Yes, authdaemond was statistically linked against vpopmail, and needed to be recompiled in order to remove the memory leak. - Tijs On 11/21/06, Dave Smulsky [EMAIL PROTECTED]

Re: [vchkpw] Memleak when using vpopmail with mysql, but without --enable-mysql-limits. + patch

2006-11-28 Thread Tom Collins
BTW, I just added Tijs's patch to vpopmail CVS yesterday, and it will be included in 5.4.18. -Tom On Nov 28, 2006, at 1:52 AM, Tijs Zwinkels wrote: Sorry for the late reply, i simply missed your mail until now. I don't know if that's always the case, but in my case: Yes, authdaemond was

[vchkpw] Memleak when using vpopmail with mysql, but without --enable-mysql-limits. + patch

2006-09-10 Thread Tijs Zwinkels
Hey Vmailers, I was wondering why my authdaemond was suddenly taking up more than 100mb memory PER INSTANCE. I found a small memory leak in vmysql.c:1529 if (!(res_read = mysql_store_result(mysql_read))) { fprintf(stderr, vmysql: store result failed 7\n); return -1; } if

Re: [vchkpw] Memleak when using vpopmail with mysql, but without --enable-mysql-limits. + patch

2006-09-10 Thread Tom Collins
On Sep 10, 2006, at 5:43 AM, Tijs Zwinkels wrote: The problem is that, if (mysql_num_rows(res_read) == 0, the function inmediately returns without freeing res_read. I attached a little patch that corrects the issue. (simply adds a mysql_free_result(res_read); ) Thanks a lot. I'll make sure