]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 01:08:04 +0000 (01:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 01:08:04 +0000 (01:08 +0000)
main/streams/xp_socket.c

index 6528a95b640b0a5d6509e118d6bfc9f829b0599b..a307f995b5cc49596fa041125a1515cd3f64f5a4 100644 (file)
@@ -642,6 +642,7 @@ static inline int php_tcp_sockop_connect(php_stream *stream, php_netstream_data_
                        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);