cppcheck: don't check NULL pointer before freeing them
[lttng-tools.git] / src / bin / lttng / commands / create.c
index d66f0309e28de3613468fdd4f3ba06d4ccf51040..6c7ab786e5d25fc90ca4b2606ee67a6bb9ff0f49 100644 (file)
@@ -390,13 +390,8 @@ static int create_session(void)
        ret = CMD_SUCCESS;
 
 error:
-       if (alloc_url) {
-               free(alloc_url);
-       }
-
-       if (traces_path) {
-               free(traces_path);
-       }
+       free(alloc_url);
+       free(traces_path);
        free(alloc_path);
 
        if (ret < 0) {
This page took 0.023196 seconds and 4 git commands to generate.