diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-13 18:29:15 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-13 18:29:15 +0800 |
commit | e9561a9bd14469edab70886d98e050bfe054a3eb (patch) | |
tree | 3a9b44ecd63f79be3b7a51ada0baedc15dd4c3a4 /test.c | |
parent | 2e207d07a6416d7ccb32040c3f9e43c3a48aeed2 (diff) |
Free each ticket
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |