Commit dcc0835a authored by Witold Krecicki's avatar Witold Krecicki

cleanup properly if we fail to initialize ns_client structure

If taskmgr is shutting down ns_client_setup will fail to create
a task for the newly created client, we weren't cleaning up already
created/attached things (memory context, server, clientmgr).
parent f75a9e32
......@@ -2333,6 +2333,16 @@ ns__client_setup(ns_client_t *client, ns_clientmgr_t *mgr, bool new) {
if (client->manager != NULL) {
if (client->mctx != NULL) {
if (client->sctx != NULL) {
return (result);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment