X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fclient.c;h=79300ca94a323930d62ffeeb0af82109b7edb39b;hb=17ff75bcd300b8523afa53be4b7058ea2a5cbdf1;hp=706e3f5bfa98f277e2c63b51218791e158824521;hpb=8f46c2a3cb1e906c68cd658469974d1ab3761d4d;p=umurmur.git diff --git a/src/client.c b/src/client.c index 706e3f5..79300ca 100644 --- a/src/client.c +++ b/src/client.c @@ -60,7 +60,7 @@ extern int udpsock; void Client_init() { - maxBandwidth = getIntConf(MAX_BANDWIDTH); + maxBandwidth = getIntConf(MAX_BANDWIDTH) / 8; /* From bits/s -> bytes/s */ } int Client_count() @@ -223,6 +223,10 @@ void Client_free(client_t *client) SSL_free(client->ssl); close(client->tcpfd); clientcount--; + if (client->release) + free(client->release); + if (client->os) + free(client->os); free(client); }