summaryrefslogtreecommitdiff
path: root/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'user.c')
-rw-r--r--user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/user.c b/user.c
index de10e1c..b64ca7c 100644
--- a/user.c
+++ b/user.c
@@ -44,6 +44,8 @@ struct user_t *user_get(char *nick) {
void user_free() {
struct user_t *user;
for(int i = 0; i < USERS_MAX; i++) {
+ if(users[i].nick)
+ free(users[i].nick);
user = users[i].next;
while(user) {
struct user_t *temp = user->next;