tFix double frees and missing free of ids. - rohrpost - A commandline mail client to change the world as we see it.
 (HTM) git clone git://r-36.net/rohrpost
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit e6e026d0df15033218409fee084a97020422b577
 (DIR) parent d4a4d688ad438e13b84959b66abc4e1a04b94485
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Mon, 27 Apr 2020 19:17:19 +0200
       
       Fix double frees and missing free of ids.
       
       Diffstat:
         flag.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/flag.c b/flag.c
       t@@ -193,11 +193,11 @@ flagmain(int argc, char *argv[])
                        if (imap_delflags(imap, ids, flagl))
                                imap_die(imap, "imap_delflags");
                }
       -        free(user);
        
                flagrl = imap_getflags(imap, ids);
                if (flagrl == NULL)
                        imap_die(imap, "imap_getflags");
       +        llist_free(ids);
        
                printf("ID\tFlags\n");