Fix a memory leak in compose_write_to_file().
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 12 Jul 2017 09:14:13 +0000 (11:14 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 12 Jul 2017 09:14:13 +0000 (11:14 +0200)
src/compose.c

index 4dfb962..a2b1891 100644 (file)
@@ -5686,6 +5686,7 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool
                if (*chars != '\n') {
                        gtk_text_buffer_insert(buffer, &end, "\n", 1);
                }
+               g_free(chars);
        }
 
        /* get all composed text */