Also on error path within map channel.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
default:
ERR("Unknown client type %d", config->client_type);
channel_destroy(chan, handle, 1);
default:
ERR("Unknown client type %d", config->client_type);
channel_destroy(chan, handle, 1);
+ free(handle->shadow_chan);
return NULL;
}
/* Replace the object table pointer. */
return NULL;
}
/* Replace the object table pointer. */
assert(handle);
chan = shmp(handle, handle->chan);
channel_destroy(chan, handle, 1);
assert(handle);
chan = shmp(handle, handle->chan);
channel_destroy(chan, handle, 1);
+ free(handle->shadow_chan);