Author: glen                         Date: Wed Nov 15 09:43:35 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- memleak patch

---- Files affected:
SOURCES:
   php-pecl-session_mysql-leak.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/php-pecl-session_mysql-leak.patch
diff -u /dev/null SOURCES/php-pecl-session_mysql-leak.patch:1.1
--- /dev/null   Wed Nov 15 10:43:35 2006
+++ SOURCES/php-pecl-session_mysql-leak.patch   Wed Nov 15 10:43:30 2006
@@ -0,0 +1,27 @@
+--- session_mysql-1.8/session_mysql.c~ 2006-06-15 15:02:32.153398581 +0300
++++ session_mysql-1.8/session_mysql.c  2006-06-15 15:34:15.026147299 +0300
+@@ -142,8 +142,24 @@
+       }
+ 
+       if ((!host && !sock) || !db || !user || !pass) {
++              if (host) {
++                      pefree(host, 1);
++              }
++              if (db) {
++                      pefree(db, 1);
++              }
++              if (user) {
++                      pefree(user, 1);
++              }
++              if (pass) {
++                      pefree(pass, 1);
++              }
++              if (sock) {
++                      pefree(sock, 1);
++              }
+               return(FAILURE);
+       }
++
+       if (SESSION_MYSQL_G(host)) {
+               pefree(SESSION_MYSQL_G(host),1);
+       }
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to