Commit Diff


commit - d83eb5cd1cc329e58e94aa0b17aa348f4df65734
commit + acf0c7c67919d5a64e2af8257925d4a3615550cf
blob - ebec64016f1700fa3992736a847eea0e5816697f
blob + 5b1301e68ee4eed2e4dccb32403706b0c6234fff
--- lib/object_parse.c
+++ lib/object_parse.c
@@ -137,7 +137,7 @@ got_object_commit_alloc_partial(void)
 	commit = calloc(1, sizeof(*commit));
 	if (commit == NULL)
 		return NULL;
-	commit->tree_id = calloc(1, sizeof(*commit->tree_id));
+	commit->tree_id = malloc(sizeof(*commit->tree_id));
 	if (commit->tree_id == NULL) {
 		free(commit);
 		return NULL;