コード例 #1
0
ファイル: rp_call_info.c プロジェクト: skyandsy/CoinPost
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);
}
コード例 #2
0
ファイル: ruby_prof.c プロジェクト: FesterCluck/PMOG-OS
static void
prof_call_info_free(prof_call_info_t *call_info)
{
  call_info_table_free(call_info->call_infos); 
  xfree(call_info);
}