aboutsummaryrefslogtreecommitdiff
path: root/t/front.t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-18 10:42:51 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-18 10:42:51 +0200
commitb67acafd615ae705a3e3682f87f35027789ddda5 (patch)
tree0ecead714fee2940e6793da65e67a167d860083e /t/front.t
parent0292e86cf884a26108a59d81d69cee83b54f4c88 (diff)
downloadcforum-b67acafd615ae705a3e3682f87f35027789ddda5.tar.gz
Free database structs after use
Diffstat (limited to 't/front.t')
-rw-r--r--t/front.t3
1 files changed, 2 insertions, 1 deletions
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 @@
<td><a href="?user=<% printf("%d", post->user); %>"><%= user->name %></a></td>
<td><% printdate(post->created); %></td>
</tr>
- <% } %>
+ <% free(post);
+ } %>
</table>
<% #include "foot.tc" %> \ No newline at end of file