iliaa           Wed Dec 29 16:34:09 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/imap   php_imap.c 
  Log:
  MFH: Fixed memory leaks.
  
  
http://cvs.php.net/diff.php/php-src/ext/imap/php_imap.c?r1=1.142.2.31&r2=1.142.2.32&ty=u
Index: php-src/ext/imap/php_imap.c
diff -u php-src/ext/imap/php_imap.c:1.142.2.31 
php-src/ext/imap/php_imap.c:1.142.2.32
--- php-src/ext/imap/php_imap.c:1.142.2.31      Wed Dec 29 16:24:00 2004
+++ php-src/ext/imap/php_imap.c Wed Dec 29 16:34:09 2004
@@ -26,7 +26,7 @@
    | PHP 4.0 updates:  Zeev Suraski <[EMAIL PROTECTED]>                       |
    +----------------------------------------------------------------------+
  */
-/* $Id: php_imap.c,v 1.142.2.31 2004/12/29 21:24:00 iliaa Exp $ */
+/* $Id: php_imap.c,v 1.142.2.32 2004/12/29 21:34:09 iliaa Exp $ */
 
 #define IMAP41
 
@@ -3158,10 +3158,14 @@
                        mystring=tempstring;
        } else {
                efree(mystring);
-               RETURN_FALSE;
+               RETVAL_FALSE;
+               goto done;
        }
 
        RETVAL_STRINGL(tempstring, 0);  
+done:
+       mail_free_body(&topbod);
+       mail_free_envelope(&env);
 }
 /* }}} */
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to