Coverity report:
CID
1404934 (#1 of 1): Dereference after null check (FORWARD_NULL)
11. var_deref_model: Passing null pointer element to
trace_chunk_registry_ht_element_put, which dereferences it.
Reported-by: Coverity (1404934) Dereference after null check
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
void trace_chunk_registry_ht_element_put(
struct trace_chunk_registry_ht_element *element)
{
+ if (!element) {
+ return;
+ }
+
urcu_ref_put(&element->ref, trace_chunk_registry_ht_element_release);
}