"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Omar Polo <op@omarpolo.com>
Subject:
gotwebd: free age and reflist in gotweb_render_branches
To:
gameoftrees@openbsd.org
Date:
Fri, 02 Sep 2022 11:14:03 +0200

Download raw body.

Thread
diff d671c3138b0a55e515557fd21584dd92c4b42a14 06e5b2b9820d183e373bdfcd7238af841a255001
commit - d671c3138b0a55e515557fd21584dd92c4b42a14
commit + 06e5b2b9820d183e373bdfcd7238af841a255001
blob - c25f0953fa4e796d24ebe3806a950049ea1bd120
blob + 0160fc30c590ae25406be33eb3401352925def09
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
@@ -1481,6 +1481,8 @@ gotweb_render_branches(struct request *c)
 	}
 	fcgi_printf(c, "</div>\n"); /* #branches_content */
 done:
+	free(age);
+	got_ref_list_free(&refs);
 	return error;
 }