From: Mathieu Desnoyers Date: Fri, 28 Sep 2012 20:41:25 +0000 (-0400) Subject: Fix: consumer_allocate_stream error handling X-Git-Tag: v2.1.0-rc5~42 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=c80048c6378b9ee7796c4b833a2c07f6050cc6d7;hp=c80048c6378b9ee7796c4b833a2c07f6050cc6d7;p=lttng-tools.git Fix: consumer_allocate_stream error handling Fix a memory leak and "be nice" when handling stream alloc errors. Upon CPU hotplug, it is possible that we receive a stream only after all other streams are finalized, which means it could happen that we discard that channel, in the unlikely event that we have cpu hotplug concurrently with destroy. Moreover, this fix the return path of channel lookup failure: we were returning an zeroed stream rather than returning an error, which was certainly not the intended behavior. Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet ---