diff --git a/ext-src/swoole_lock.cc b/ext-src/swoole_lock.cc index 282f2963bf..fdd6806d37 100644 --- a/ext-src/swoole_lock.cc +++ b/ext-src/swoole_lock.cc @@ -60,7 +60,6 @@ void php_swoole_lock_set_ptr(zval *zobject, Lock *ptr) { } static void php_swoole_lock_free_object(zend_object *object) { - LockObject *o = php_swoole_lock_fetch_object(object); zend_object_std_dtor(object); } diff --git a/ext-src/swoole_runtime.cc b/ext-src/swoole_runtime.cc index ba46e9ef57..2caf996bff 100644 --- a/ext-src/swoole_runtime.cc +++ b/ext-src/swoole_runtime.cc @@ -1172,7 +1172,6 @@ static php_stream *socket_create(const char *proto, } if (SW_STREQ(proto, protolen, "tcp")) { - _tcp: sock = new Socket(resourcename[0] == '[' ? SW_SOCK_TCP6 : SW_SOCK_TCP); } else if (SW_STREQ(proto, protolen, "ssl") || SW_STREQ(proto, protolen, "tls")) { #ifdef SW_USE_OPENSSL