Fix: Add missing free() in utils_partial_realpath
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 16 May 2016 23:27:30 +0000 (19:27 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 May 2016 19:14:37 +0000 (15:14 -0400)
Fixes coverity #1328401

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/utils.c

index 735d97f99c0ae675826853aa7a400a90f26afb05..bbe13ed7dc5474bfbd1fbe4124242d65d5391a7e 100644 (file)
@@ -176,6 +176,8 @@ char *utils_partial_realpath(const char *path, char *resolved_path, size_t size)
 error:
        free(resolved_path);
        free(cut_path);
+       free(try_path);
+       free(try_path_prev);
        return NULL;
 }
 
This page took 0.032738 seconds and 4 git commands to generate.