]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- postgresql-ssl-libpq-mem-leak-1.patch
authorJarosław Kruk <jareq@pld-linux.org>
Mon, 22 Dec 2003 22:54:06 +0000 (22:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql-ssl-libpq-mem-leak-1.patch -> 1.1

postgresql-ssl-libpq-mem-leak-1.patch [new file with mode: 0644]

diff --git a/postgresql-ssl-libpq-mem-leak-1.patch b/postgresql-ssl-libpq-mem-leak-1.patch
new file mode 100644 (file)
index 0000000..93f322a
--- /dev/null
@@ -0,0 +1,35 @@
+diff -c -r1.44 be-secure.c
+*** src/backend/libpq/be-secure.c      29 Nov 2003 19:51:49 -0000      1.44
+--- src/backend/libpq/be-secure.c      13 Dec 2003 01:09:13 -0000
+***************
+*** 764,769 ****
+--- 767,778 ----
+               SSL_free(port->ssl);
+               port->ssl = NULL;
+       }
++ 
++      if (port->peer)
++      {
++              X509_free(port->peer);
++              port->peer = NULL;
++      }
+  }
+  
+  /*
+*** src/interfaces/libpq/fe-secure.c   29 Nov 2003 19:52:12 -0000      1.33
+--- src/interfaces/libpq/fe-secure.c   13 Dec 2003 00:57:56 -0000
+***************
+*** 1004,1009 ****
+--- 1004,1015 ----
+               SSL_free(conn->ssl);
+               conn->ssl = NULL;
+       }
++ 
++      if (conn->peer)
++      {
++              X509_free(conn->peer);
++              conn->peer = NULL;
++      }
+  }
+  
+  /*
This page took 0.035478 seconds and 4 git commands to generate.