Fix: sessiond ust-app session teardown race
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index ff7d993265082439672a12ffed175809b942e9cd..217d45a2577f8f67df59cb5d65093f96e6caad24 100644 (file)
@@ -1616,6 +1616,7 @@ int cmd_enable_event(struct ltt_session *session, struct lttng_domain *domain,
                                        sizeof(struct lttng_filter_bytecode)
                                        + filter->len);
                                if (!filter_copy) {
+                                       ret = LTTNG_ERR_NOMEM;
                                        goto error;
                                }
 
@@ -3153,7 +3154,7 @@ int cmd_snapshot_record(struct ltt_session *session,
        int ret = LTTNG_OK;
        unsigned int use_tmp_output = 0;
        struct snapshot_output tmp_output;
-       unsigned int nb_streams, snapshot_success = 0;
+       unsigned int snapshot_success = 0;
 
        assert(session);
        assert(output);
This page took 0.058028 seconds and 4 git commands to generate.