summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test.c b/test.c
index 300a8be..f7fca73 100644
--- a/test.c
+++ b/test.c
@@ -53,6 +53,8 @@ int main(void)
for (unsigned short i = 0; i < list->length; i++) {
char *ticket = list->tickets[i];
printf("Ticket %d: %s\n", i, ticket);
+ if (ticket)
+ free(ticket);
}
free(list);
}