summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/server')
-rw-r--r--xlators/protocol/server/src/server-helpers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c
index 5e681c507..112712e7f 100644
--- a/xlators/protocol/server/src/server-helpers.c
+++ b/xlators/protocol/server/src/server-helpers.c
@@ -802,11 +802,6 @@ server_connection_destroy (xlator_t *this, server_connection_t *conn)
free (locker);
}
- state = CALL_STATE (frame);
- if (state)
- free (state);
- STACK_DESTROY (frame->root);
-
pthread_mutex_lock (&(conn->lock));
{
if (conn->fdtable) {
@@ -836,6 +831,11 @@ server_connection_destroy (xlator_t *this, server_connection_t *conn)
}
}
+ state = CALL_STATE (frame);
+ if (state)
+ free (state);
+ STACK_DESTROY (frame->root);
+
gf_log (this->name, GF_LOG_INFO, "destroyed connection of %s",
conn->id);