| 3516 | } |
| 3517 | |
| 3518 | void discard_cache_entry(struct cache_entry *ce) |
| 3519 | { |
| 3520 | if (ce && should_validate_cache_entries()) |
| 3521 | memset(ce, 0xCD, cache_entry_size(ce->ce_namelen)); |
| 3522 | |
| 3523 | if (ce && ce->mem_pool_allocated) |
| 3524 | return; |
| 3525 | |
| 3526 | free(ce); |
| 3527 | } |
| 3528 | |
| 3529 | int should_validate_cache_entries(void) |
| 3530 | { |
no test coverage detected