0; i++) { shape[i] = mdai->item[r].shape; } + xfree(mdai->type); xfree(mdai->item); xfree(mdai); return shape; Then, % ruby testna.rb 5964 pts/3 R 0:00 253 570 2445 1604 0.2 ruby testna.rb 5964 pts/3 S 0:02 260 570 7733 6920 0.9 ruby testna.rb 5964 pts/3 S 0:03 260 570 7733 6920 0.9 ruby testna.rb 5964 pts/3 S 0:05 260 570 7733 6920 0.9 ruby testna.rb 5964 pts/3 R 0:07 260 570 7733 6920 0.9 ruby testna.rb 5964 pts/3 S 0:09 260 570 7733 6920 0.9 ruby testna.rb Masahiro Tanaka [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <200402190503.OAA00565@koala.ir.isas.jaxa.jp> [ref] => <15db2cbe.0402180805.447bc44e@posting.google.com> [htmlstate] => on_nl2br [postusername] => Masahiro [ip] => masa@ir.isas.ac [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [attachments] => [allattachments] => ) -->