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

From Zhihong Yu
Subject potential memory leak in pg_regcomp()
Date
Msg-id CALNJ-vSLYroFKGJwxi4yp=jr0-bLquTtbX19m1D_nC+1bG9oew@mail.gmail.com
Whole thread Raw
Responses Re: potential memory leak in pg_regcomp()
Re: potential memory leak in pg_regcomp()
List pgsql-hackers
Hi,
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.
Can someone enlighten me?

Thanks

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Reducing logs produced by TAP tests running pg_regress on crash
Next
From: Michael Paquier
Date:
Subject: Re: Make name optional in CREATE STATISTICS