Changeset 1903

Show
Ignore:
Timestamp:
02/07/07 13:48:27 (2 years ago)
Author:
moseley
Message:

Applied patch by Antony Dovgal for leak in resetting a prop limit.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • swish-e/trunk/pod/CHANGES.pod

    r1865 r1903  
    66 
    77This document contains list of bug fixes and feature additions to Swish-e. 
     8 
     9=head2 Version 2.4.x - ? 
     10 
     11=over 4 
     12 
     13=item Leak in SwishResetSearchLimit 
     14 
     15Fixed a leak if a limit was set and then reset but not prepared. 
     16Patch provided by Antony Dovgal. 
     17 
     18 
     19=back 
    820 
    921=head2 Version 2.4.5 - 22 Jan 2007 
  • swish-e/trunk/src/proplimit.c

    r1736 r1903  
    153153     
    154154 
    155     if ( !srch->limits_prepared ) 
    156         return; 
    157  
    158155 
    159156    /* Free up the input parameters */ 
     
    161158    srch->limit_params = NULL; 
    162159 
    163              
    164160 
    165161    /* Free up the stored limits for each meta entry */ 
     162 
     163    if ( !srch->limits_prepared ) 
     164        return; 
     165 
     166 
    166167    while ( indexf ) 
    167168    { 
     
    188189            } 
    189190        } 
    190          
     191 
    191192 
    192193        indexf = indexf->next;