diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-01 09:18:50 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-01 09:18:50 -0700 |
commit | fe020aa06045c14b5e9cf26c2ea5fd0dd1c55c2d (patch) | |
tree | 94f1497769514fdab17ac1e945ee88d2b3453ddb | |
parent | e5cacfa29628fd9664f24462a330bc199280af53 (diff) |
Fix memory leak, reduce spam
-rw-r--r-- | src/core/iomgr/tcp_client_posix.c | 4 | ||||
-rw-r--r-- | src/core/surface/server.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/iomgr/tcp_client_posix.c b/src/core/iomgr/tcp_client_posix.c index 2a81cf56a4..f88ce19448 100644 --- a/src/core/iomgr/tcp_client_posix.c +++ b/src/core/iomgr/tcp_client_posix.c @@ -152,7 +152,6 @@ static void on_writable(void *acp, int success) { goto finish; } } else { - gpr_log(GPR_DEBUG, "connected"); ep = grpc_tcp_create(ac->fd, GRPC_TCP_DEFAULT_READ_SLICE_SIZE); goto finish; } @@ -210,8 +209,6 @@ void grpc_tcp_client_connect(void (*cb)(void *arg, grpc_endpoint *ep), return; } - gpr_log(GPR_DEBUG, "connecting fd %d", fd); - do { err = connect(fd, addr, addr_len); } while (err < 0 && errno == EINTR); @@ -220,7 +217,6 @@ void grpc_tcp_client_connect(void (*cb)(void *arg, grpc_endpoint *ep), grpc_pollset_set_add_fd(interested_parties, fdobj); if (err >= 0) { - gpr_log(GPR_DEBUG, "instant connect"); cb(arg, grpc_tcp_create(fdobj, GRPC_TCP_DEFAULT_READ_SLICE_SIZE)); return; diff --git a/src/core/surface/server.c b/src/core/surface/server.c index f173e7da4a..99e3ee6d2e 100644 --- a/src/core/surface/server.c +++ b/src/core/surface/server.c @@ -576,6 +576,8 @@ static void finish_shutdown_channel(void *p, int success) { NULL, &op); } GRPC_CHANNEL_INTERNAL_UNREF(sca->chand->channel, "shutdown"); + + gpr_free(sca); } static void shutdown_channel(channel_data *chand, int send_goaway, |