Re: How to properly fix memory leak - Mailing list pgsql-general

From Tom Lane
Subject Re: How to properly fix memory leak
Date
Msg-id 132172.1745703297@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to properly fix memory leak  (Igor Korot <ikorot01@gmail.com>)
Responses Re: How to properly fix memory leak
List pgsql-general
Igor Korot <ikorot01@gmail.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?

            regards, tom lane



pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: Re: How to properly fix memory leak
Next
From: Igor Korot
Date:
Subject: Re: How to properly fix memory leak