projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: possible invalid free in kernel thread
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
main.c
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index 6f8f1486ca60de5d958352868b9912ddcbdcf24f..6e548f3c10bf8185c13ac8156f1b5c54fe0ff4ce 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-691,6
+691,12
@@
static void *thread_manage_kernel(void *data)
DBG("[thread] Thread manage kernel started");
DBG("[thread] Thread manage kernel started");
+ /*
+ * This first step of the while is to clean this structure which could free
+ * non NULL pointers so zero it before the loop.
+ */
+ memset(&events, 0, sizeof(events));
+
if (testpoint(thread_manage_kernel)) {
goto error_testpoint;
}
if (testpoint(thread_manage_kernel)) {
goto error_testpoint;
}
This page took
0.02285 seconds
and
4
git commands to generate.