Revision c79b0be5
b/xseg/xtypes/xcache.c | ||
---|---|---|
217 | 217 |
if (!cache->entries){ |
218 | 218 |
return -1; |
219 | 219 |
} |
220 |
cache->nodes = xtypes_malloc(sizeof(struct xcache_entry) * cache->nr_nodes); |
|
220 |
cache->nodes = xtypes_malloc(cache->nr_nodes * |
|
221 |
sizeof(struct xcache_entry)); |
|
221 | 222 |
if (!cache->nodes){ |
222 | 223 |
return -1; |
223 | 224 |
} |
224 |
cache->times = xtypes_malloc(sizeof(uint64_t) * cache->nr_nodes);
|
|
225 |
cache->times = xtypes_malloc(cache->nr_nodes * sizeof(uint64_t));
|
|
225 | 226 |
if (!cache->times){ |
226 | 227 |
return -1; |
227 | 228 |
} |
Also available in: Unified diff