Commit Diff


commit - 795c5bd703056e2896698a42d4a0af2a5f636ec5
commit + bc8c6114aff18b83aae307950b963388a7c39f2c
blob - 5ab097998eac86e1e04477bc4b9b55ab2fdf255b
blob + 6850d90636309c790dffc12171d798275858303c
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
@@ -3070,6 +3070,7 @@ gw_get_commits(struct gw_trans * gw_trans, struct gw_h
 			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);
 		}