diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-18 10:42:51 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-18 10:42:51 +0200 |
commit | b67acafd615ae705a3e3682f87f35027789ddda5 (patch) | |
tree | 0ecead714fee2940e6793da65e67a167d860083e /ctl.c | |
parent | 0292e86cf884a26108a59d81d69cee83b54f4c88 (diff) | |
download | cforum-b67acafd615ae705a3e3682f87f35027789ddda5.tar.gz |
Free database structs after use
Diffstat (limited to 'ctl.c')
-rw-r--r-- | ctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -31,6 +31,7 @@ showatt(id) printf("Content-Type: %s\n\n", att->mime); printf("%.*s", att->bytes, att->data); + free(att); } void @@ -77,6 +78,8 @@ showpost(int id) title = site.name; printf("Content-Type: text/html\n\n"); #include "t/post.tc" + free(user); + free(post); } void |