summaryrefslogtreecommitdiff
path: root/guile-readline
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2007-06-25 22:25:22 +0000
committerLudovic Courtès <ludo@gnu.org>2007-06-25 22:25:22 +0000
commitd3075c52acac924e91b64c6f91759c757ad3b741 (patch)
treeb8c6ea7300b311da17f3a4a2bd9b8e9c2bf5131b /guile-readline
parent2778269600807f46e85190746e16e284ca66cef2 (diff)
Changes from arch/CVS synchronization
Diffstat (limited to 'guile-readline')
-rw-r--r--guile-readline/ChangeLog11
-rw-r--r--guile-readline/readline.c3
2 files changed, 12 insertions, 2 deletions
diff --git a/guile-readline/ChangeLog b/guile-readline/ChangeLog
index 51979c783..b6797b489 100644
--- a/guile-readline/ChangeLog
+++ b/guile-readline/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-26 Ludovic Courtès <ludo@gnu.org>
+
+ * readline.c (scm_add_history): Free S after invocation of
+ `add_history ()'.
+
2007-01-19 Han-Wen Nienhuys <hanwen@lilypond.org>
* readline.c: terminate option list with NULL.
@@ -315,7 +320,7 @@
2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
- Thanks to Matthias Köppe!
+ Thanks to Matthias Köppe!
* configure.in: Check for rl_filename_completion_function.
* readline.c (s_scm_filename_completion_function): Use
@@ -701,3 +706,7 @@ Sun Dec 12 19:56:52 1999 Greg J. Badros <gjb@cs.washington.edu>
* Started guile-readline package. Files are copied from old
guile-core package and slightly modified.
+
+;; Local Variables:
+;; coding: utf-8
+;; End:
diff --git a/guile-readline/readline.c b/guile-readline/readline.c
index 4d2be7302..5a8ced64a 100644
--- a/guile-readline/readline.c
+++ b/guile-readline/readline.c
@@ -1,6 +1,6 @@
/* readline.c --- line editing support for Guile */
-/* Copyright (C) 1997,1999,2000,2001, 2002, 2003, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1999,2000,2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -329,6 +329,7 @@ SCM_DEFINE (scm_add_history, "add-history", 1, 0, 0,
s = scm_to_locale_string (text);
add_history (s);
+ free (s);
return SCM_UNSPECIFIED;
}