From: | Igor Korot <ikorot01(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: How to properly fix memory leak |
Date: | 2025-04-26 21:43:27 |
Message-ID: | CA+FnnTy9B_CKP_PXBjZKADXaF03Nm=CcShBFCA7rjqkbcL7N6g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi, Tom,
On Sat, Apr 26, 2025 at 4:34 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Igor Korot <ikorot01(at)gmail(dot)com> writes:
> >>>> auto temp1 = m_pimpl->m_myconv.from_bytes( PQgetvalue(
> >>>> res, i, 1 ) );
> >>>> m_tablespaces.push_back( temp1 );
>
> I would imagine that from_bytes() is producing a malloc'd
> string. Which part of this is responsible for seeing that
> that gets freed?
No other places produces memory leak.
And I use this function quite extensively…
Thank you.
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | Igor Korot | 2025-04-27 00:18:03 | How to get the data from the query |
Previous Message | Tom Lane | 2025-04-26 21:34:57 | Re: How to properly fix memory leak |