projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng-sessiond: cpu hotplug: send channel to consumer only once
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.c
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index f3ff25642e701a0f83e78bbfd02144c1a118dfdb..c4e4ccfbe5e0098c0d7e6a9da50e56b5a9b4795f 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-3587,7
+3587,10
@@
int cmd_register_trigger(struct command_ctx *cmd_ctx, int sock,
ret = notification_thread_command_register_trigger(notification_thread,
trigger);
ret = notification_thread_command_register_trigger(notification_thread,
trigger);
+ /* Ownership of trigger was transferred. */
+ trigger = NULL;
end:
end:
+ lttng_trigger_destroy(trigger);
lttng_dynamic_buffer_reset(&trigger_buffer);
return ret;
}
lttng_dynamic_buffer_reset(&trigger_buffer);
return ret;
}
@@
-3630,6
+3633,7
@@
int cmd_unregister_trigger(struct command_ctx *cmd_ctx, int sock,
ret = notification_thread_command_unregister_trigger(notification_thread,
trigger);
end:
ret = notification_thread_command_unregister_trigger(notification_thread,
trigger);
end:
+ lttng_trigger_destroy(trigger);
lttng_dynamic_buffer_reset(&trigger_buffer);
return ret;
}
lttng_dynamic_buffer_reset(&trigger_buffer);
return ret;
}
This page took
0.02946 seconds
and
4
git commands to generate.