Matthew S. wrote in post #1035396: > static void deallocate(struct myHandle * ptr){ > TSK_IMG_INFO *image = ptr->image; > tsk_img_close(image); > } And don't forget to deallocate the struct myHandle too. :) Regards, Bill -- Posted via http://www.ruby-forum.com/.