]> granicus.if.org Git - php/commitdiff
Fixed memory leaks.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 29 Dec 2004 21:33:03 +0000 (21:33 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 29 Dec 2004 21:33:03 +0000 (21:33 +0000)
ext/imap/php_imap.c

index 3bf55006a044d43ed2e8a0d67878b8effb9deb14..cb591a7b2dcc2c62cfa41ae78903919b3df6922e 100644 (file)
@@ -3188,10 +3188,14 @@ PHP_FUNCTION(imap_mail_compose)
                        mystring=tempstring;
        } else {
                efree(mystring);
-               RETURN_FALSE;
+               RETVAL_FALSE;
+               goto done;
        }
 
-       RETVAL_STRINGL(tempstring, 0);  
+       RETVAL_STRINGL(tempstring, 0);
+done:
+       mail_free_body(&topbod);
+       mail_free_envelope(&env);
 }
 /* }}} */