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

index 43c9ad74e4e821d08a7a7970e092fd01b2573f4e..f7c70e9025edfdb3f4f478f2b8fffb039ef3e16c 100644 (file)
@@ -3187,10 +3187,14 @@ PHP_FUNCTION(imap_mail_compose)
                        mystring = tempstring;
        } else {
                efree(mystring);
-               RETURN_FALSE;
+               RETVAL_FALSE;
+               goto done;
        }
 
        RETVAL_STRING(tempstring, 0);  
+done:
+       mail_free_body(&topbod);
+       mail_free_envelope(&env);
 }
 /* }}} */