Fix: memory leak in lttng_enable_event_with_exclusions
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl-health.c
index 534c01c023307ea2eb6bd6272b05fa2e601d2ce5..ba9aac05a42bfb5493efb1dbf67d597c799d55b6 100644 (file)
@@ -260,7 +260,7 @@ retry:
        if (ret) {
                goto error;
        }
-       /* Connect to the sesssion daemon */
+       /* Connect to component */
        sock = lttcomm_connect_unix_sock(health->health_sock_path);
        if (sock < 0) {
                if (tracing_group) {
@@ -272,6 +272,7 @@ retry:
                goto error;
        }
 
+       memset(&msg, 0, sizeof(msg));
        msg.cmd = HEALTH_CMD_CHECK;
 
        ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));
This page took 0.025857 seconds and 4 git commands to generate.