X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fsessiond-trace-chunks.c;h=f2dfa23a11826d935ec1e2f189d9bdeef4e6b958;hp=495227226e8a4bcb5f48c62a607ae29e1ce91336;hb=cd65fb868140e522fa520a4735d81a93038963e9;hpb=3517bb6841bfddf35ef13f173055c53fad5fc16a diff --git a/src/bin/lttng-relayd/sessiond-trace-chunks.c b/src/bin/lttng-relayd/sessiond-trace-chunks.c index 495227226..f2dfa23a1 100644 --- a/src/bin/lttng-relayd/sessiond-trace-chunks.c +++ b/src/bin/lttng-relayd/sessiond-trace-chunks.c @@ -151,6 +151,10 @@ static 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); }