cppcheck: don't check NULL pointer before freeing them
[lttng-tools.git] / src / bin / lttng / conf.c
index 995407d03d4d4ba6863ee991c6da927df06e8db8..c1bfcfd45b8d87eacfae6d3be878033121ee85cc 100644 (file)
@@ -65,9 +65,7 @@ static FILE *open_config(char *path, const char *mode)
        }
 
 error:
-       if (file_path) {
-               free(file_path);
-       }
+       free(file_path);
        return fp;
 }
 
This page took 0.022849 seconds and 4 git commands to generate.