Branch: Tag:

2002-01-02

2002-01-02 12:48:46 by Johan Schön <js@opera.com>

Fixed memory leak (one blob struct leaked per blob that was used)

Rev: src/modules/_WhiteFish/blob.c:1.29
Rev: src/modules/_WhiteFish/blobs.c:1.8
Rev: src/modules/_WhiteFish/buffer.c:1.10
Rev: src/modules/_WhiteFish/whitefish.c:1.33

3:   #include "global.h"   #include "stralloc.h"   #include "global.h" - RCSID("$Id: whitefish.c,v 1.32 2001/07/31 15:27:18 js Exp $"); + RCSID("$Id: whitefish.c,v 1.33 2002/01/02 12:48:46 js Exp $");   #include "pike_macros.h"   #include "interpret.h"   #include "program.h"
39:    if( t->res ) free_object( t->res );    for( i = 0; i<t->nblobs; i++ )    wf_blob_free( t->blobs[i] ); +  free(t->blobs);    free( t->tmp );    free( t );   }
529:    field_coefficients,    proximity_coefficients,    cutoff ); +     pop_n_elems( args );    wf_resultset_push( res );   }