diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-08-08 02:22:12 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-08-08 02:22:12 +0200 |
commit | 7ae3b6544091363334142df775708e1ea88bc9bc (patch) | |
tree | 1e6569c10b8611ad685a2cfed0bb9d6edc28f918 /src/history.c | |
parent | dedcb4677b67737a781c300d06de1022201f709b (diff) | |
download | ratpoison-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.c | 1 |
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); |