commit 32ac459c84bb6bc9e1c167c470256959f93d60f3 from: Stefan Sperling date: Mon Nov 05 17:12:25 2018 UTC there's no need to zero tree entries during allocation commit - 15fe583fb97d7e91d4cd62435189c98018f5e145 commit + 32ac459c84bb6bc9e1c167c470256959f93d60f3 blob - a36f34ae5b4e27b1a80800647608c3ca0cd5e11a blob + 46c648c9817c637977cca2543e256910f3c92de3 --- lib/object_parse.c +++ lib/object_parse.c @@ -404,11 +404,11 @@ got_alloc_tree_entry_partial(void) { struct got_tree_entry *te; - te = calloc(1, sizeof(*te)); + te = malloc(sizeof(*te)); if (te == NULL) return NULL; - te->id = calloc(1, sizeof(*te->id)); + te->id = malloc(sizeof(*te->id)); if (te->id == NULL) { free(te); te = NULL;