Fix: sessiond: missing goto in error handler
[lttng-tools.git] / src / common / tracker.c
index 532a924b56a772b3d55d11e611028ebf7267a7fe..0f69c775b75f6d1c08e213fa547bcbbf5feb7daa 100644 (file)
@@ -85,6 +85,7 @@ enum lttng_error_code process_attr_value_from_comm(
                name = strdup(value_view->data);
                if (!name) {
                        ret = LTTNG_ERR_NOMEM;
+                       goto error;
                }
        }
 
@@ -173,6 +174,7 @@ enum lttng_error_code process_attr_value_from_comm(
 
        *_value = value;
        value = NULL;
+       free(name);
        return LTTNG_OK;
 error:
        free(name);
This page took 0.024193 seconds and 5 git commands to generate.