Skip to content

Commit

Permalink
Revert "clar: fix leaking error reports"
Browse files Browse the repository at this point in the history
This reverts commit 0b2e5a7.
  • Loading branch information
pks-t committed Sep 20, 2024
1 parent f5bc5bb commit b8a6eac
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions clar.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,14 +612,6 @@ clar_test_shutdown(void)
}

for (report = _clar.reports; report; report = report_next) {
struct clar_error *error, *error_next;

for (error = report->errors; error; error = error_next) {
free(error->description);
error_next = error->next;
free(error);
}

report_next = report->next;
free(report);
}
Expand Down

0 comments on commit b8a6eac

Please sign in to comment.