Harald Fuchs <hari(dot)fuchs(at)gmail(dot)com> writes:
> I think I've found a bug either in PostgreSQL 9.1.0 or in the ip4r
> package (version 1.05).
Good catch --- gistendscan is forgetting to free so->giststate.
But it seems just as broken in 9.0 and probably before ...
regards, tom lane