BUG #18770: The function 'packGraph ' causes a memory leak. - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18770: The function 'packGraph ' causes a memory leak.
Date
Msg-id 18770-895a62c1890d7491@postgresql.org
Whole thread Raw
Responses Re: BUG #18770: The function 'packGraph ' causes a memory leak.
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18770
Logged by:          fengyao
Email address:      2365868844@qq.com
PostgreSQL version: 17.2
Operating system:   linux
Description:

Hello, 

In line 1965 of the trgm_regexp.c file

1965:    arcs = (TrgmPackArcInfo *)
1966:        palloc(sizeof(TrgmPackArcInfo) * trgmNFA->arcsCount);

The memory requested 'arcs' was not freed.

Have a good day!


pgsql-bugs by date:

Previous
From: David Rowley
Date:
Subject: Re: BUG #18764: server closed the connection unexpectedly
Next
From: dqetool
Date:
Subject: Re: BUG #18764: server closed the connection unexpectedly