Zhihong Yu <zyu(at)yugabyte(dot)com> writes:
> I was looking at pg_regcomp():
> re->re_guts = VS(MALLOC(sizeof(struct guts)));
> I did some search trying to find where re_guts is freed but haven't
> found it.
In rfree(), which is called from freev().
regards, tom lane