]> git.pld-linux.org Git - packages/php-pecl-session_mysql.git/blob - php-pecl-session_mysql-leak.patch
- somewhat usable reconnect patch; rel 2
[packages/php-pecl-session_mysql.git] / php-pecl-session_mysql-leak.patch
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.094459 seconds and 3 git commands to generate.