payload: use fd_handle instead of raw file descriptors
[lttng-tools.git] / src / common / fd-handle.c
index a9c7be4a938ab86aa44d3c6316c3ccd8a04e6537..ddf70afadea98fa9a1aa4414bcee74a73e4c7c1a 100644 (file)
@@ -58,14 +58,20 @@ end:
 LTTNG_HIDDEN
 void fd_handle_get(struct fd_handle *handle)
 {
-       assert(handle);
+       if (!handle) {
+               return;
+       }
+
        urcu_ref_get(&handle->ref);
 }
 
 LTTNG_HIDDEN
 void fd_handle_put(struct fd_handle *handle)
 {
-       assert(handle);
+       if (!handle) {
+               return;
+       }
+
        urcu_ref_put(&handle->ref, fd_handle_release);
 }
 
This page took 0.022658 seconds and 4 git commands to generate.