Fix segfault on free() pointer
[lttng-tools.git] / lttng / commands / destroy.c
index 9519403ad1c68e26a85a913e7714dd536a2f20fc..d7c01097fdf8d03e029102bc03813112a4069c6d 100644 (file)
@@ -26,7 +26,7 @@
 #include <unistd.h>
 
 #include "cmd.h"
-#include "config.h"
+#include "conf.h"
 #include "utils.h"
 
 static char *opt_session_name;
@@ -81,7 +81,7 @@ static int destroy_session()
                goto free_name;
        }
 
-       path = get_config_file_path();
+       path = config_get_default_path();
        if (path == NULL) {
                ret = CMD_FATAL;
                goto free_name;
@@ -94,7 +94,6 @@ static int destroy_session()
                MSG("Session %s destroyed", session_name);
        }
 
-       free(path);
        ret = CMD_SUCCESS;
 
 free_name:
This page took 0.023021 seconds and 4 git commands to generate.