summaryrefslogtreecommitdiff
path: root/ext/curses
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curses')
-rw-r--r--ext/curses/curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index f1d037b19d..5d5fdb567f 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -646,7 +646,7 @@ curses_getmouse(VALUE obj)
val = Data_Make_Struct(cMouseEvent,struct mousedata,
0,curses_mousedata_free,mdata);
- mdata->mevent = (MEVENT*)malloc(sizeof(MEVENT));
+ mdata->mevent = (MEVENT*)xmalloc(sizeof(MEVENT));
return (getmouse(mdata->mevent) == OK) ? val : Qnil;
}