Julien Rouhaud <julien(dot)rouhaud(at)dalibo(dot)com> writes:
> My colleague Adrien reported me a memory leak in GIN indexes while doing
> some benchmark on several am.
> ...
> I'm not at all familiar with GIN code, but naive attached patch seems to
> fix the issue and not break anything. I can reproduce this issue up to 9.4.
Yes, this seems right. Thanks for the report and patch!
regards, tom lane