static void prof_call_info_free(prof_call_info_t *call_info) { /* Has this thread object been accessed by Ruby? If yes clean it up so to avoid a segmentation fault. */ if (call_info->object != Qnil) { RDATA(call_info->object)->data = NULL; RDATA(call_info->object)->dfree = NULL; RDATA(call_info->object)->dmark = NULL; } call_info->object = Qnil; call_info_table_free(call_info->call_infos); xfree(call_info); }
static void prof_call_info_free(prof_call_info_t *call_info) { call_info_table_free(call_info->call_infos); xfree(call_info); }