aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/front.t3
-rw-r--r--t/post.t3
2 files changed, 4 insertions, 2 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
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 @@
<td><%= att->mime %></td>
<td><%= att->description %></td>
</tr>
- <% }while(att = nextatt(stmt)); %>
+ <% free(att);
+ }while(att = nextatt(stmt)); %>
</table>
<% } %>
<% #include "foot.tc" %> \ No newline at end of file