cvs: php4 /win32 sendmail.c

From: Date: Mon, 03 Jun 2002 14:39:31 +0000
Subject: cvs: php4 /win32 sendmail.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12207@lists.php.net to get a copy of this message
mfischer Mon Jun 3 10:39:31 2002 EDT Modified files: /php4/win32 sendmail.c Log: - Fix a leak and a crash. Index: php4/win32/sendmail.c diff -u php4/win32/sendmail.c:1.38 php4/win32/sendmail.c:1.39 --- php4/win32/sendmail.c:1.38 Sun Jun 2 19:39:59 2002 +++ php4/win32/sendmail.c Mon Jun 3 10:39:30 2002 @@ -17,7 +17,7 @@ * */ -/* $Id: sendmail.c,v 1.38 2002/06/02 23:39:59 mfischer Exp $ */ +/* $Id: sendmail.c,v 1.39 2002/06/03 14:39:30 mfischer Exp $ */ #include "php.h" /*php specific */ #include <stdio.h> @@ -564,26 +564,25 @@ } } + if (headers_lc) { + efree(headers_lc); + } if ((res = Post(header_buffer)) != SUCCESS) { efree(header_buffer); - if (headers_lc) { - efree(headers_lc); - } return (res); } efree(header_buffer); if ((res = Post("\r\n")) != SUCCESS) { - if (headers_lc) { - efree(headers_lc); - } return (res); } return (SUCCESS); PostHeader_outofmem: - efree(headers_lc); + if (headers_lc) { + efree(headers_lc); + } return OUT_OF_MEMORY; }

« previous php.cvs (#12207) next »