projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: client socket not created by the main thread
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
thread.c
diff --git
a/src/bin/lttng-sessiond/thread.c
b/src/bin/lttng-sessiond/thread.c
index c685442ba036e55ec24c413375d5409e50f56daf..ff6c0962f33768390500e7e5da2cedee55311a5f 100644
(file)
--- a/
src/bin/lttng-sessiond/thread.c
+++ b/
src/bin/lttng-sessiond/thread.c
@@
-140,6
+140,9
@@
bool lttng_thread_get(struct lttng_thread *thread)
void lttng_thread_put(struct lttng_thread *thread)
{
void lttng_thread_put(struct lttng_thread *thread)
{
+ if (!thread) {
+ return;
+ }
assert(thread->ref.refcount);
urcu_ref_put(&thread->ref, lttng_thread_release);
}
assert(thread->ref.refcount);
urcu_ref_put(&thread->ref, lttng_thread_release);
}
This page took
0.024795 seconds
and
5
git commands to generate.