Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad05b5d
)
libpq: Fix memory leak
author
Peter Eisentraut
<peter_e@gmx.net>
Wed, 7 Mar 2012 21:35:03 +0000
(23:35 +0200)
committer
Peter Eisentraut
<peter_e@gmx.net>
Sat, 10 Mar 2012 22:47:36 +0000
(
00:47
+0200)
If a client encoding is specified as a connection parameter (or
environment variable), internal storage allocated for it would never
be freed.
src/interfaces/libpq/fe-connect.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/libpq/fe-connect.c
b/src/interfaces/libpq/fe-connect.c
index 2c3d544df727a42fb5a584ba3158df5c5adc16fb..704885bbbed20e0baa273110a44a6541c682d68d 100644
(file)
--- a/
src/interfaces/libpq/fe-connect.c
+++ b/
src/interfaces/libpq/fe-connect.c
@@
-2744,6
+2744,8
@@
freePGconn(PGconn *conn)
free(conn->events[i].name);
}
+ if (conn->client_encoding_initial)
+ free(conn->client_encoding_initial);
if (conn->events)
free(conn->events);
if (conn->pghost)