]> git.ipfire.org Git - thirdparty/git.git/blobdiff - send-pack.c
Merge branch 'en/ort-perf-batch-9'
[thirdparty/git.git] / send-pack.c
index 9045f8a082bcd62c8ee116dc235561574ed35326..5f215b13c7dc1a8a020094236625554db94591b2 100644 (file)
@@ -188,13 +188,13 @@ static int receive_status(struct packet_reader *reader, struct ref *refs)
                        }
                        if (new_report) {
                                if (!hint->report) {
-                                       hint->report = xcalloc(1, sizeof(struct ref_push_report));
+                                       CALLOC_ARRAY(hint->report, 1);
                                        report = hint->report;
                                } else {
                                        report = hint->report;
                                        while (report->next)
                                                report = report->next;
-                                       report->next = xcalloc(1, sizeof(struct ref_push_report));
+                                       CALLOC_ARRAY(report->next, 1);
                                        report = report->next;
                                }
                                new_report = 0;