commit 507aef8f8e1be34cae656c48f04b5c814d8a7b76 from: Stefan Sperling date: Mon Nov 05 17:57:41 2018 UTC no need to zero object cache entries during allocation commit - acf0c7c67919d5a64e2af8257925d4a3615550cf commit + 507aef8f8e1be34cae656c48f04b5c814d8a7b76 blob - f4766bb8930bb4f090f7673b33c60c3aed5a0ff0 blob + f965839f6718bfe2b1406cd88b5efd5f0f16cf72 --- lib/object_cache.c +++ lib/object_cache.c @@ -92,7 +92,7 @@ got_object_cache_add(struct got_object_cache *cache, s cache->cache_evict++; } - ce = calloc(1, sizeof(*ce)); + ce = malloc(sizeof(*ce)); if (ce == NULL) return got_error_from_errno(); memcpy(&ce->id, id, sizeof(ce->id));