fix memleak in type.c

see

https://github.com/jcupitt/libvips/pull/164