Return-Path: owner-postgres
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id IAA06094 for postgres-redist; Mon, 28 Aug 1995 08:37:39 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199508281537.IAA06094@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from nova.ucd.ie (nova.ucd.ie [137.43.1.5]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id IAA04018 for <postgres@postgres.berkeley.edu>; Mon, 28 Aug 1995 08:37:18 -0700
Message-Id: <199508281537.IAA04018@nobozo.CS.Berkeley.EDU>
Received: from nova.ucd.ie by nova.ucd.ie id <25409-0@nova.ucd.ie>;
          Mon, 28 Aug 1995 16:37:07 +0100
To: postgres@postgres.Berkeley.EDU
Subject: Re: Memory Leaks
Date: Mon, 28 Aug 1995 16:37:07 +0100
From: Alan Byrne <alan@nova.ucd.ie>
X-Sender: alan@nova.ucd.ie
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Mon, 28 Aug 95 08:37:39 -0700
Resent-XMts: smtp


Further to my previous mail:

To fix memory leaks in the libpq frontend you need to add two free statements
to pq_connect.  It might be better to just use straight variables for these. ?
Anyone who wants to have a daemon running which accesses postgres will need to
patch this.

*** pqcomm.c	Mon Aug 28 16:07:01 1995
--- /usr2/postgres/osf/src/backend/libpq/pqcomm.c	Wed Feb  9 00:12:24 1994
***************
*** 559,565 ****
  	pqdebug("%s", PQerrormsg);
  	return(STATUS_ERROR);
      }
! free(MyConn); free(SendPort);
      PQAsyncNotifyWaiting = 0;
      PQnotifies_init();
  /*    pq_regoob(pq_async_notify);*/
--- 559,565 ----
  	pqdebug("%s", PQerrormsg);
  	return(STATUS_ERROR);
      }
! 
      PQAsyncNotifyWaiting = 0;
      PQnotifies_init();
  /*    pq_regoob(pq_async_notify);*/


Cheers,

Alan Byrne,
email: alan@nova.ucd.ie
http://slarti.ucd.ie/

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
