diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | thread_pthread.c | 4 |
2 files changed, 2 insertions, 9 deletions
@@ -10,13 +10,6 @@ Sun May 8 16:56:19 2011 Tadayoshi Funaba <tadf@dotrb.org> * ext/date/date_core.c (date_s_test_*): use macros. -Sun May 8 10:54:06 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> - - * thread_pthread.c (add_signal_thread_list): use xmalloc instead - of malloc. - * thread_pthread.c (remove_signal_thread_list): use xfree instead - of free. - Sun May 8 10:24:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * thread_pthread.c: cleanup signal_thread_list related ifdef. diff --git a/thread_pthread.c b/thread_pthread.c index f8c19c0835..466fe36009 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -897,7 +897,7 @@ add_signal_thread_list(rb_thread_t *th) if (!th->native_thread_data.signal_thread_list) { FGLOCK(&signal_thread_list_lock, { struct signal_thread_list *list = - xmalloc(sizeof(struct signal_thread_list)); + malloc(sizeof(struct signal_thread_list)); if (list == 0) { fprintf(stderr, "[FATAL] failed to allocate memory\n"); @@ -932,7 +932,7 @@ remove_signal_thread_list(rb_thread_t *th) } th->native_thread_data.signal_thread_list = 0; list->th = 0; - xfree(list); /* ok */ + free(list); /* ok */ }); } } |