Show
Ignore:
Timestamp:
09/22/08 22:57:38 (4 months ago)
Author:
karpet
Message:

all tests passing, all (known) leaks fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/libswish3/analyzer.c

    r2158 r2176  
    5757     
    5858    if (SWISH_DEBUG & SWISH_DEBUG_MEMORY) { 
    59         SWISH_DEBUG_MSG("analyzer ptr 0x%x", (int)a); 
     59        SWISH_DEBUG_MSG("analyzer ptr 0x%x", (long int)a); 
    6060    } 
    6161 
     
    6363} 
    6464 
    65 /* TODO 
     65/*  
    6666   IMPORTANT -- any struct members that require unique free()s should 
    6767   do that prior to calling this function. 
     
    8181        swish_mem_debug(); 
    8282    } 
     83     
     84    if (a->stash != NULL) 
     85        SWISH_WARN("Analyzer->stash not freed 0x%x", (long int)a->stash); 
     86         
     87    if (a->regex != NULL) 
     88        SWISH_WARN("Analyzer->regex not freed 0x%x", (long int)a->regex); 
     89         
     90    if (a->stemmer != NULL) 
     91        SWISH_WARN("Analyzer->stemmer not freed"); 
     92         
     93     
    8394    swish_xfree(a); 
    8495}