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