projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: clean-up: remove trailing dot in snapshot test statements
[lttng-tools.git]
/
src
/
common
/
fd-handle.c
diff --git
a/src/common/fd-handle.c
b/src/common/fd-handle.c
index a9c7be4a938ab86aa44d3c6316c3ccd8a04e6537..ddf70afadea98fa9a1aa4414bcee74a73e4c7c1a 100644
(file)
--- a/
src/common/fd-handle.c
+++ b/
src/common/fd-handle.c
@@
-58,14
+58,20
@@
end:
LTTNG_HIDDEN
void fd_handle_get(struct fd_handle *handle)
{
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)
{
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);
}
urcu_ref_put(&handle->ref, fd_handle_release);
}
This page took
0.025079 seconds
and
4
git commands to generate.