aboutsummaryrefslogtreecommitdiffstats
path: root/lib/readline/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline/shell.c')
-rw-r--r--lib/readline/shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/readline/shell.c b/lib/readline/shell.c
index 18b4f03..ac0fb36 100644
--- a/lib/readline/shell.c
+++ b/lib/readline/shell.c
@@ -130,12 +130,12 @@ sh_set_lines_and_columns (lines, cols)
b = (char *)xmalloc (INT_STRLEN_BOUND (int) + 1);
sprintf (b, "%d", lines);
setenv ("LINES", b, 1);
- free (b);
+ xfree (b);
b = (char *)xmalloc (INT_STRLEN_BOUND (int) + 1);
sprintf (b, "%d", cols);
setenv ("COLUMNS", b, 1);
- free (b);
+ xfree (b);
#else /* !HAVE_SETENV */
# if defined (HAVE_PUTENV)
b = (char *)xmalloc (INT_STRLEN_BOUND (int) + sizeof ("LINES=") + 1);