cvs: php-src /main/streams xp_socket.c

From: Date: Thu, 21 Dec 2006 01:07:52 +0000
Subject: cvs: php-src /main/streams xp_socket.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-42253@lists.php.net to get a copy of this message
tony2001 Thu Dec 21 01:07:52 2006 UTC Modified files: /php-src/main/streams xp_socket.c Log: don't leak on error http://cvs.php.net/viewvc.cgi/php-src/main/streams/xp_socket.c?r1=1.38&r2=1.39&diff_format=u Index: php-src/main/streams/xp_socket.c diff -u php-src/main/streams/xp_socket.c:1.38 php-src/main/streams/xp_socket.c:1.39 --- php-src/main/streams/xp_socket.c:1.38 Tue Dec 19 08:59:26 2006 +++ php-src/main/streams/xp_socket.c Thu Dec 21 01:07:52 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xp_socket.c,v 1.38 2006/12/19 08:59:26 dmitry Exp $ */ +/* $Id: xp_socket.c,v 1.39 2006/12/21 01:07:52 tony2001 Exp $ */ #include "php.h" #include "ext/standard/file.h" @@ -642,6 +642,7 @@ if (xparam->want_errortext) { spprintf(&xparam->outputs.error_text, 0, "local_addr context option is not a string."); } + efree(host); return -1; } bindto = parse_ip_address_ex(Z_STRVAL_PP(tmpzval), Z_STRLEN_PP(tmpzval), &bindport, xparam->want_errortext, &xparam->outputs.error_text TSRMLS_CC);

« previous php.cvs (#42253) next »