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 b53ea77e21ab4be8e3b33d59e60cfa3aa2b9ef0e..95946efd9748a1d4fcfd7a6279bc2ddf96853264 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 */