projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6ae9fa
)
Fix memory leak in password store reading.
author
Andrej Kacian
<ticho@claws-mail.org>
Fri, 9 Sep 2016 21:43:51 +0000
(23:43 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Fri, 9 Sep 2016 21:43:51 +0000
(23:43 +0200)
src/passwordstore.c
patch
|
blob
|
history
diff --git
a/src/passwordstore.c
b/src/passwordstore.c
index b53ea77e21ab4be8e3b33d59e60cfa3aa2b9ef0e..95946efd9748a1d4fcfd7a6279bc2ddf96853264 100644
(file)
--- 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 */