From: David Goulet Date: Mon, 10 Dec 2012 21:03:58 +0000 (-0500) Subject: Fix: Use stream deletion function when cleaning up X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=5c540210ba9c26bd5de0ea135c872d3807d5bb4b;hp=5c540210ba9c26bd5de0ea135c872d3807d5bb4b;p=lttng-tools.git Fix: Use stream deletion function when cleaning up In theory, once the destroy stream ht function is called with the hash table, it should be empty. However, for some fatal errors, it might not so it's imperative that we gracefully delete the stream and free it using an RCU call so both hash tables (stream and the one for the pending command) are synchronized. Simply freeing the stream could have created possible fd leaks and invalid node for the data pending hash table. Signed-off-by: David Goulet ---