potential memory leak in pg_regcomp()

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: potential memory leak in pg_regcomp()
Date: 2022-07-23 03:20:04
Message-ID: CALNJ-vSLYroFKGJwxi4yp=jr0-bLquTtbX19m1D_nC+1bG9oew@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2022-07-23 03:25:23 Re: Make name optional in CREATE STATISTICS
Previous Message Michael Paquier 2022-07-23 03:07:25 Re: Reducing logs produced by TAP tests running pg_regress on crash