MCPcopy Create free account
hub / github.com/git/git / mem_pool__ce_calloc

Function mem_pool__ce_calloc

read-cache.c:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static inline struct cache_entry *mem_pool__ce_calloc(struct mem_pool *mem_pool, size_t len)
108{
109 struct cache_entry * ce;
110 ce = mem_pool_calloc(mem_pool, 1, cache_entry_size(len));
111 ce->mem_pool_allocated = 1;
112 return ce;
113}
114
115static struct mem_pool *find_mem_pool(struct index_state *istate)
116{

Callers 2

make_empty_cache_entryFunction · 0.85

Calls 1

mem_pool_callocFunction · 0.85

Tested by

no test coverage detected