Fix: clean-up sessiond condig structure on initialization error
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index e8f05cecf2694dc8048c4540950611d265097145..6d3ae1b5806fdb2c818cec136b826abdb7c24000 100644 (file)
@@ -591,15 +591,9 @@ static void sessiond_cleanup(void)
         */
        utils_close_pipe(thread_quit_pipe);
 
-       /*
-        * If config.pid_file_path.value is undefined, the default file will be
-        * wiped when removing the rundir.
-        */
-       if (config.pid_file_path.value) {
-               ret = remove(config.pid_file_path.value);
-               if (ret < 0) {
-                       PERROR("remove pidfile %s", config.pid_file_path.value);
-               }
+       ret = remove(config.pid_file_path.value);
+       if (ret < 0) {
+               PERROR("remove pidfile %s", config.pid_file_path.value);
        }
 
        DBG("Removing sessiond and consumerd content of directory %s",
This page took 0.025179 seconds and 5 git commands to generate.