Skip to main content.
home | support | download

Back to List Archive

Re: memleak when setting & resetting search limits

From: Antony Dovgal <antony(at)not-real.zend.com>
Date: Tue Jan 30 2007 - 22:17:31 GMT
On 01/31/2007 01:11 AM, Bill Moseley wrote:
> On Tue, Jan 30, 2007 at 08:21:18AM -0800, Antony Dovgal wrote:
>> This is a multi-part message in MIME format.
>> --------------010308020804050007070401
>> Content-Type: text/plain; charset=KOI8-R; format=flowed
>> Content-Transfer-Encoding: 7bit
>> 
>> Hello all.
>> 
>> If one calls SwishSetSearchLimit() and then frees the search object, SwishResetSearchLimit() 
>> function will not free previously allocated search->limit_params because search->limits_prepared is 0.
>> search->limits_prepared supposed to be set in Prepare_PropLookup(), but it was not called.
> 
> You are probably more familiar with that code then I am at this time,
> but should that code you removed just be moved below the
> ClearLimitParams() part?

Erm.. Yes, I guess you're right.

-- 
Wbr, 
Antony Dovgal
Received on Tue Jan 30 14:17:32 2007