resource free in pagedir.
eliminated printf comments in frame.c