]> git.pld-linux.org Git - packages/php-pecl-session_mysql.git/commitdiff
- memleak patch
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 15 Nov 2006 09:43:30 +0000 (09:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pecl-session_mysql-leak.patch -> 1.1

php-pecl-session_mysql-leak.patch [new file with mode: 0644]

diff --git a/php-pecl-session_mysql-leak.patch b/php-pecl-session_mysql-leak.patch
new file mode 100644 (file)
index 0000000..675eee8
--- /dev/null
@@ -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);
+       }
This page took 0.031376 seconds and 4 git commands to generate.