On Thu, 26 Dec 2002, Ari Pollak wrote:

> Hi there, I'm trying to hack mail.c to automatically pass a -f argument 
> to qmail with a return address, so that the Return-path of the message 
> is not always root@blah. Anyway, I seem to have been successful in this 
> endeavor, but I have a slight problem - whenever my code gets executed, 
> I get two errors output:
> 
> /home/ari/php-4.3.0RC4/ext/standard/mail.c(235) :  Freeing 0x088F6524 
> (51 bytes), script=/home/ari/public_html/mail.php
> /home/ari/php-4.3.0RC4/ext/standard/mail.c(229) :  Freeing 0x088F647C 
> (23 bytes), script=/home/ari/public_html/mail.php
> 
> Line 229 and 235 are the following, respectively:
> qmail_from = emalloc(strlen(temp) + 3);
> sendmail_cmd = emalloc(strlen(sendmail_path) + strlen(qmail_from) +
> 2);
> 
> I efree() both temp and qmail_from when they're done being used, but I 
> can't seem to find why exactly this message is popping up. Both temp and 
> qmail_from seem to be valid strings, and those are the only two strings 
> I create myself that are used.
> 
> Any ideas? What else could cause the Freeing error message?

Most likely you return from the function before you efree the variables 
(with RETURN_* or return for example).

regards,
Derick

-- 

-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/
-------------------------------------------------------------------------


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to