From 03e301513e0f0bb552ed5fd1cc8056900396652d Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Tue, 28 Aug 2018 16:12:40 -0400 Subject: [PATCH] Fix: leaking string by setting pointer to NULL before freeing it MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Coverity (1395200) Resource leak Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau --- src/common/utils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/utils.c b/src/common/utils.c index 84d42f463..78bfbef95 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -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; } /* -- 2.34.1