Changeset 298
- Timestamp:
- 02/15/07 12:46:24 (1 year ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/eaccelerator.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r297 r298 1 2007-02-15 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 3 * Use emalloc for filter lists, mixing memory from two allocators is 4 enough. 5 1 6 2007-02-13 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 7 eaccelerator/trunk/eaccelerator.c
r296 r298 703 703 unlink(s); 704 704 if (use_shm) eaccelerator_free(p); else efree(p); 705 DBG(ea_debug_printf, (EA_DEBUG, "cache file is corrupted\n")); 705 706 return NULL; 706 707 } … … 1535 1536 q = p->next; 1536 1537 if (p->str) { 1537 free(p->str);1538 } 1539 free(p);1538 efree(p->str); 1539 } 1540 efree(p); 1540 1541 } 1541 1542 EAG(cond_list) = NULL; … … 1555 1556 ; 1556 1557 if ((s > ss) && *ss) { 1557 p = (ea_cond_entry *) malloc(sizeof(ea_cond_entry));1558 p = (ea_cond_entry *)emalloc(sizeof(ea_cond_entry)); 1558 1559 if (p == NULL) 1559 1560 break; 1560 1561 p->not = not; 1561 1562 p->len = s-ss; 1562 p->str = malloc(p->len+1);1563 p->str = emalloc(p->len+1); 1563 1564 memcpy(p->str, ss, p->len); 1564 1565 p->str[p->len] = 0; … … 1799 1800 q = p->next; 1800 1801 if (p->str) { 1801 free(p->str);1802 } 1803 free(p);1802 efree(p->str); 1803 } 1804 efree(p); 1804 1805 } 1805 1806 eaccelerator_globals->cond_list = NULL;