AmendHub

Download (as of this amendment):

jcs

/

amend

/

amendments

/

166

repo: Plug leak if migrate is rejected


jcs made amendment 166 24 days ago
--- repo.c Mon Sep 28 13:34:44 2026 +++ repo.c Mon Sep 28 13:41:14 2026 @@ -111,6 +111,7 @@ repo_init(struct bile *bile, bool is_new) repo->next_amendment_id = 1; if (repo_migrate(repo, is_new) != 0) { + bile_close(bile); xfree(&repo); return NULL; }