tFree invite structures after accepting. - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 97695371f061993f008fcc46b4baf3e1265ad82b
 (DIR) parent a365337cb9d934742f609e274d751fda63212f80
 (HTM) Author: pranomostro <pranomestro@gmail.com>
       Date:   Thu, 16 Feb 2017 13:22:20 +0100
       
       Free invite structures after accepting.
       
       Diffstat:
         M ratox.c                             |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -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) {