[fix] Resource leaks, initialize all members, check fseek returns...