Don't free the shared shard maps

When client sessions are closed, the shared shard maps should not be freed.
This commit is contained in:
Markus Makela 2016-09-20 11:17:37 +03:00
parent e4543881d2
commit b1b2e5b770

View File

@ -1381,11 +1381,6 @@ static void freeSession(ROUTER* router_instance, void* router_client_session)
* all the memory and other resources associated
* to the client session.
*/
if (router_cli_ses->shardmap)
{
hashtable_free(router_cli_ses->shardmap->hash);
free(router_cli_ses->shardmap);
}
free(router_cli_ses->rses_backend_ref);
free(router_cli_ses);
return;