Commit 5bdda53f authored by Marc G. Fournier's avatar Marc G. Fournier

From: Bryan Henderson <bryanh@giraffe-data.com>

Here's a fix for a tiny memory leak in PQsetdb/PQfinish.

(Analysis of a running program indicates there are several others, but
this is the only obvious one I saw in the code).
parent 72098f38
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.64 1998/03/26 23:46:14 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.65 1998/04/21 04:00:06 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -726,6 +726,8 @@ freePGconn(PGconn *conn) ...@@ -726,6 +726,8 @@ freePGconn(PGconn *conn)
free(conn->dbName); free(conn->dbName);
if (conn->pguser) if (conn->pguser)
free(conn->pguser); free(conn->pguser);
if (conn->pgpass)
free(conn->pgpass);
if (conn->notifyList) if (conn->notifyList)
DLFreeList(conn->notifyList); DLFreeList(conn->notifyList);
free(conn); free(conn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment