From b67acafd615ae705a3e3682f87f35027789ddda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 10:42:51 +0200 Subject: Free database structs after use --- t/front.t | 3 ++- t/post.t | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/front.t b/t/front.t index fd9f46c..a12d712 100644 --- a/t/front.t +++ b/t/front.t @@ -9,6 +9,7 @@ user); %>"><%= user->name %> <% printdate(post->created); %> - <% } %> + <% free(post); + } %> <% #include "foot.tc" %> \ No newline at end of file diff --git a/t/post.t b/t/post.t index b1cbe99..1e3d360 100644 --- a/t/post.t +++ b/t/post.t @@ -22,7 +22,8 @@ <%= att->mime %> <%= att->description %> - <% }while(att = nextatt(stmt)); %> + <% free(att); + }while(att = nextatt(stmt)); %> <% } %> <% #include "foot.tc" %> \ No newline at end of file -- cgit v1.2.3