]> git.pld-linux.org Git - packages/php-pecl-session_mysql.git/blame - php-pecl-session_mysql-leak.patch
- somewhat usable reconnect patch; rel 2
[packages/php-pecl-session_mysql.git] / php-pecl-session_mysql-leak.patch
CommitLineData
8eaf59af
ER
1--- session_mysql-1.8/session_mysql.c~ 2006-06-15 15:02:32.153398581 +0300
2+++ session_mysql-1.8/session_mysql.c 2006-06-15 15:34:15.026147299 +0300
3@@ -142,8 +142,24 @@
4 }
5
6 if ((!host && !sock) || !db || !user || !pass) {
7+ if (host) {
8+ pefree(host, 1);
9+ }
10+ if (db) {
11+ pefree(db, 1);
12+ }
13+ if (user) {
14+ pefree(user, 1);
15+ }
16+ if (pass) {
17+ pefree(pass, 1);
18+ }
19+ if (sock) {
20+ pefree(sock, 1);
21+ }
22 return(FAILURE);
23 }
24+
25 if (SESSION_MYSQL_G(host)) {
26 pefree(SESSION_MYSQL_G(host),1);
27 }
This page took 0.091843 seconds and 4 git commands to generate.