summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpranomostro <pranomestro@gmail.com>2017-02-16 13:22:20 +0100
committerpranomostro <pranomestro@gmail.com>2017-02-18 01:49:43 +0100
commit97695371f061993f008fcc46b4baf3e1265ad82b (patch)
tree0bfeb4fe05abb094ba8e930cf6968eb9cdb9c72e
parenta365337cb9d934742f609e274d751fda63212f80 (diff)
Free invite structures after accepting.
-rw-r--r--ratox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index 88967e3..8a3a2c6 100644
--- a/ratox.c
+++ b/ratox.c
@@ -2042,8 +2042,10 @@ loop(void)
}
unlinkat(gslots[CONF].fd[OUT], inv->fifoname, 0);
close(inv->fd);
+ TAILQ_REMOVE(&invhead, inv, entry);
free(inv->fifoname);
free(inv->cookie);
+ free(inv);
}
for (f = TAILQ_FIRST(&friendhead); f; f = ftmp) {