From 8dd121b5b7a30f9d30a89b566bbe4e6e3f60f6a4 Mon Sep 17 00:00:00 2001 From: kazu Date: Mon, 5 Jan 2009 07:16:12 +0000 Subject: [PATCH] * ext/curses/curses.c (free_window): use xfree instead of free. [ruby-dev:37200] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/curses/curses.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9e3c78914c..8b27c92783 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 5 16:15:00 2009 Kazuhiro NISHIYAMA + + * ext/curses/curses.c (free_window): use xfree instead of free. + [ruby-dev:37200] + Mon Jan 5 15:49:45 2009 Kazuhiro NISHIYAMA * ext/gdbm/gdbm.c (rb_gdbm_fetch): remove needless cast. diff --git a/ext/curses/curses.c b/ext/curses/curses.c index f0a61082ea..861104f85b 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -94,7 +94,7 @@ free_window(struct windata *winp) { if (winp->window && winp->window != stdscr) delwin(winp->window); winp->window = 0; - free(winp); + xfree(winp); } static VALUE