Fix: leaking string by setting pointer to NULL before freeing it
[lttng-tools.git] / src / common / utils.c
index 84d42f4638e53f37fc139c4b1c6d5d6b1c30b375..78bfbef95ede423f4a6c028fbfb0a3886e3c0ea8 100644 (file)
@@ -337,7 +337,6 @@ char *_utils_expand_path(const char *path, bool keep_symlink)
                char *cwd_ret;
                cwd_ret = getcwd(current_working_dir, sizeof(current_working_dir));
                if (!cwd_ret) {
-                       absolute_path = NULL;
                        goto error;
                }
                /*
This page took 0.024051 seconds and 5 git commands to generate.