Fixed a libimobiledevice resource leak.