Re: potential memory leak in pg_regcomp() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: potential memory leak in pg_regcomp()
Date
Msg-id 802565.1658548165@sss.pgh.pa.us
Whole thread Raw
In response to potential memory leak in pg_regcomp()  (Zhihong Yu <zyu@yugabyte.com>)
List pgsql-hackers
Zhihong Yu <zyu@yugabyte.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



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Removing obsolete configure checks
Next
From: Tom Lane
Date:
Subject: Re: Make name optional in CREATE STATISTICS