[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vchkpw
Subject:    Re: [vchkpw] Memleak when using vpopmail with mysql, but without --enable-mysql-limits. + patch
From:       Tom Collins <tom () tomlogic ! com>
Date:       2006-09-10 16:39:49
Message-ID: 95E52FE4-26C1-4D9D-8CA6-2C05EA72D8BF () tomlogic ! com
[Download RAW message or body]

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 this gets into the next release.

--
Tom Collins  -  tom@tomlogic.com
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic