projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reference count ltt_session objects
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
rotation-thread.c
diff --git
a/src/bin/lttng-sessiond/rotation-thread.c
b/src/bin/lttng-sessiond/rotation-thread.c
index f78e8ea25adf53bed9ad917e87338deaac328c95..a9f9967a3b49ee04d3fab5beba7b3d27c268c627 100644
(file)
--- a/
src/bin/lttng-sessiond/rotation-thread.c
+++ b/
src/bin/lttng-sessiond/rotation-thread.c
@@
-706,7
+706,6
@@
int handle_job_queue(struct rotation_thread_handle *handle,
{
int ret = 0;
int fd = lttng_pipe_get_readfd(queue->event_pipe);
{
int ret = 0;
int fd = lttng_pipe_get_readfd(queue->event_pipe);
- struct ltt_session *session;
char buf;
ret = lttng_read(fd, &buf, 1);
char buf;
ret = lttng_read(fd, &buf, 1);
@@
-717,6
+716,7
@@
int handle_job_queue(struct rotation_thread_handle *handle,
}
for (;;) {
}
for (;;) {
+ struct ltt_session *session;
struct rotation_thread_job *job;
/* Take the queue lock only to pop an element from the list. */
struct rotation_thread_job *job;
/* Take the queue lock only to pop an element from the list. */
@@
-747,12
+747,14
@@
int handle_job_queue(struct rotation_thread_handle *handle,
*/
session_unlock_list();
free(job);
*/
session_unlock_list();
free(job);
+ session_put(session);
continue;
}
session_lock(session);
ret = run_job(job, session, handle->notification_thread_handle);
session_unlock(session);
continue;
}
session_lock(session);
ret = run_job(job, session, handle->notification_thread_handle);
session_unlock(session);
+ session_put(session);
session_unlock_list();
free(job);
if (ret) {
session_unlock_list();
free(job);
if (ret) {
@@
-841,6
+843,7
@@
int handle_condition(const struct lttng_condition *condition,
end_unlock:
session_unlock(session);
end_unlock:
session_unlock(session);
+ session_put(session);
end:
return ret;
}
end:
return ret;
}
This page took
0.024792 seconds
and
5
git commands to generate.