aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-server/client.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-11 20:38:35 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-11 20:38:35 +0200
commit4ccb5bfda23550315a89d625b99b3cc48c3e42fa (patch)
treee8ff3675874c8b9bb01d3ad8036dff743ae3bb2a /src/mds-server/client.c
parentm doc (diff)
downloadmds-4ccb5bfda23550315a89d625b99b3cc48c3e42fa.tar.gz
mds-4ccb5bfda23550315a89d625b99b3cc48c3e42fa.tar.bz2
mds-4ccb5bfda23550315a89d625b99b3cc48c3e42fa.tar.xz
receive modifications
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-server/client.c')
-rw-r--r--src/mds-server/client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mds-server/client.c b/src/mds-server/client.c
index 6c46c90..3c8fb2d 100644
--- a/src/mds-server/client.c
+++ b/src/mds-server/client.c
@@ -57,6 +57,10 @@ void client_destroy(client_t* restrict this)
mds_message_destroy(this->modify_message);
free(this->modify_message);
}
+ if (this->modify_mutex_created)
+ pthread_mutex_destroy(&(this->modify_mutex));
+ if (this->modify_cond_created)
+ pthread_cond_destroy(&(this->modify_cond));
free(this);
}
@@ -132,6 +136,8 @@ size_t client_unmarshal(client_t* restrict this, char* restrict data)
this->multicasts = NULL;
this->send_pending = NULL;
this->mutex_created = 0;
+ this->modify_mutex_created = 0;
+ this->modify_cond_created = 0;
this->multicasts_count = 0;
buf_get_next(data, ssize_t, this->list_entry);
buf_get_next(data, int, this->socket_fd);