correctly clear out the freed pointers for irqs, irqlens and and the irqcount on _close (we might just reopen the same port later).
correctly clear out the freed pointers for irqs, irqlens and
and the irqcount on _close (we might just reopen the same port later).

gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2