]> git.pld-linux.org Git - packages/postgresql.git/blame - postgresql-ssl-libpq-mem-leak-1.patch
- up to 8.1.2
[packages/postgresql.git] / postgresql-ssl-libpq-mem-leak-1.patch
CommitLineData
295f1182
JK
1diff -c -r1.44 be-secure.c
2*** src/backend/libpq/be-secure.c 29 Nov 2003 19:51:49 -0000 1.44
3--- src/backend/libpq/be-secure.c 13 Dec 2003 01:09:13 -0000
4***************
5*** 764,769 ****
6--- 767,778 ----
7 SSL_free(port->ssl);
8 port->ssl = NULL;
9 }
10+
11+ if (port->peer)
12+ {
13+ X509_free(port->peer);
14+ port->peer = NULL;
15+ }
16 }
17
18 /*
19*** src/interfaces/libpq/fe-secure.c 29 Nov 2003 19:52:12 -0000 1.33
20--- src/interfaces/libpq/fe-secure.c 13 Dec 2003 00:57:56 -0000
21***************
22*** 1004,1009 ****
23--- 1004,1015 ----
24 SSL_free(conn->ssl);
25 conn->ssl = NULL;
26 }
27+
28+ if (conn->peer)
29+ {
30+ X509_free(conn->peer);
31+ conn->peer = NULL;
32+ }
33 }
34
35 /*
This page took 0.055318 seconds and 4 git commands to generate.