From fbb619d6ae6150a53b4b0bd5aa08ce53e3c6f253 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Fri, 9 Sep 2016 23:43:51 +0200 Subject: [PATCH] Fix memory leak in password store reading. --- src/passwordstore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/passwordstore.c b/src/passwordstore.c index b53ea77e2..95946efd9 100644 --- a/src/passwordstore.c +++ b/src/passwordstore.c @@ -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 */ -- 2.25.1