Free memory after use in m_draft().
authormarkus schnalke <meillo@marmaro.de>
Thu, 5 Jan 2012 18:24:20 +0000 (19:24 +0100)
committermarkus schnalke <meillo@marmaro.de>
Thu, 5 Jan 2012 18:24:20 +0000 (19:24 +0100)
sbr/m_draft.c

index 427d2db..3659ff3 100644 (file)
@@ -27,6 +27,7 @@ m_draft(char *which)
        if (!(mp = folder_read(folder))) {
                adios(NULL, "unable to read folder %s", folder);
        }
+       free(folder);
 
        /*
        ** Make sure we have enough message status space for all