Commit bc8c6114aff18b83aae307950b963388a7c39f2c

Tracey Emery 2020-02-17T17:30:29

free missed n_header refs

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 5ab0979..6850d90 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -3070,6 +3070,7 @@ gw_get_commits(struct gw_trans * gw_trans, struct gw_header *header,
 			error = gw_get_commit(gw_trans, n_header, commit, id);
 			if (error)
 				goto done;
+			got_ref_list_free(&n_header->refs);
 			TAILQ_INSERT_TAIL(&gw_trans->gw_headers, n_header,
 			    entry);
 		}