X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmain.c;h=6e548f3c10bf8185c13ac8156f1b5c54fe0ff4ce;hp=6f8f1486ca60de5d958352868b9912ddcbdcf24f;hb=d5d63bf12b65741e64735103b0a36a0ebb52b09b;hpb=ad7051c0f2e1eb584c623794bf4b83548e3ccadc diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 6f8f1486c..6e548f3c1 100644 --- 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"); + /* + * 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; }