fix memory leaks in pg_dump

Поиск
Список
Период
Сортировка
От Neil Conway
Тема fix memory leaks in pg_dump
Дата
Msg-id 1038435318.3556.44.camel@tokyo
обсуждение исходный текст
Ответы Re: fix memory leaks in pg_dump  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: fix memory leaks in pg_dump  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
This patch fixes two tiny memory leaks in pg_dump.

Cheers,

Neil
--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC


Index: src/bin/pg_dump/pg_dump.c
===================================================================
RCS file: /var/lib/cvs/pgsql-server/src/bin/pg_dump/pg_dump.c,v
retrieving revision 1.308
diff -c -r1.308 pg_dump.c
*** src/bin/pg_dump/pg_dump.c    23 Nov 2002 03:59:08 -0000    1.308
--- src/bin/pg_dump/pg_dump.c    27 Nov 2002 21:37:06 -0000
***************
*** 3226,3231 ****
--- 3226,3232 ----
                        "WHERE contypid = '%s'::pg_catalog.oid",
                        tinfo->oid);

+     PQclear(res);
      res = PQexec(g_conn, chkquery->data);
      if (!res ||
          PQresultStatus(res) != PGRES_TUPLES_OK)
***************
*** 3269,3274 ****
--- 3270,3276 ----
      destroyPQExpBuffer(q);
      destroyPQExpBuffer(delq);
      destroyPQExpBuffer(query);
+     destroyPQExpBuffer(chkquery);
  }

  /*

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Christoph Zwerschke"
Дата:
Сообщение: PyGreSQL inserttable patch
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: fix memory leaks in pg_dump