Changeset 1194 for trunk


Ignore:
Timestamp:
2012-12-12T08:41:46+01:00 (22 months ago)
Author:
moo
Message:

fixs crash when cache is too small on start up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_cacher/xc_cacher.c

    r1190 r1194  
    26112611            /* do NOT touch cached data */ 
    26122612            shm = cache->shm; 
    2613             cache->shm->handlers->memdestroy(cache->allocator); 
     2613            if (shm) { 
     2614                cache->shm->handlers->memdestroy(cache->allocator); 
     2615            } 
    26142616        } 
    26152617    } 
Note: See TracChangeset for help on using the changeset viewer.