Copyright ownership transfer
[lttng-tools.git] / src / bin / lttng / commands / destroy.c
index 2e473f519f3c52924eb7f3c40ac30b8ff8870ab0..e825d9c3e7dfa01ac5ca31399eb3b469ea17b07c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
+ * Copyright (C) 2011 EfficiOS Inc.
  *
  * SPDX-License-Identifier: GPL-2.0-only
  *
@@ -272,7 +272,7 @@ int cmd_destroy(int argc, const char **argv)
        char *session_name = NULL;
        const char *leftover = NULL;
 
-       struct lttng_session *sessions;
+       struct lttng_session *sessions = NULL;
        int count;
        int found;
 
@@ -423,6 +423,8 @@ end:
                free(session_name);
        }
 
+       free(sessions);
+
        /* Overwrite ret if an error occurred during destroy_session/all */
        ret = command_ret ? command_ret : ret;
 
This page took 0.023688 seconds and 4 git commands to generate.