Fix memory leak in password store reading.
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 9 Sep 2016 21:43:51 +0000 (23:43 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 9 Sep 2016 21:43:51 +0000 (23:43 +0200)
src/passwordstore.c

index b53ea77..95946ef 100644 (file)
@@ -418,6 +418,8 @@ void passwd_store_read_config(void)
 
        lines = g_strsplit(contents, "\n", -1);
 
+       g_free(contents);
+
        while (lines[i] != NULL) {
                if (*lines[i] == '[') {
                        /* Beginning of a new block */