Re: possible memory leak in Server Status window

From: Julius Tuskenis <julius(at)nsoft(dot)lt>
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: possible memory leak in Server Status window
Date: 2011-02-11 10:42:37
Message-ID: 4D55129D.1080508@nsoft.lt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hello, Guillaume

Please look at frmStatus::fillLogfileCombo(). Please note, that the set
is defined and assigned, but then as it has not enough rows to be
"interesting" the function returns 0 and exits. So "delete set;" is
never called. Can this be the issue?

int frmStatus::fillLogfileCombo()
{
int count = cbLogfiles->GetCount();
if (!count)
cbLogfiles->Append(_("Current log"));
else
count--;

pgSet *set = connection->ExecuteSet(
wxT("SELECT filename, filetime\n")
wxT(" FROM pg_logdir_ls() AS A(filetime
timestamp, filename text)\n")
wxT(" ORDER BY filetime DESC"));
if (set)
{
if (set->NumRows() <= count)
return 0;

--
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Peter Geoghegan 2011-02-11 13:45:54 Re: possible memory leak in Server Status window
Previous Message Julius Tuskenis 2011-02-11 08:10:46 Re: possible memory leak in Server Status window