summaryrefslogtreecommitdiff
path: root/src/history.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-08-08 02:22:12 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-08-08 02:22:12 +0200
commit7ae3b6544091363334142df775708e1ea88bc9bc (patch)
tree1e6569c10b8611ad685a2cfed0bb9d6edc28f918 /src/history.c
parentdedcb4677b67737a781c300d06de1022201f709b (diff)
downloadratpoison-7ae3b6544091363334142df775708e1ea88bc9bc.zip
Free buffer used to read history file.
From Repolho <repolho at zoho dot com>, thanks!
Diffstat (limited to 'src/history.c')
-rw-r--r--src/history.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/history.c b/src/history.c
index a63658c..b48feb9 100644
--- a/src/history.c
+++ b/src/history.c
@@ -201,6 +201,7 @@ history_load (void)
/* defaults.history_size might be only set later */
history_add_upto (hist_COMMAND, line, INT_MAX);
}
+ free (line);
if (ferror (f)) {
PRINT_DEBUG (("ratpoison: error reading %s - %s\n", filename, strerror (errno)));
fclose(f);