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 20:37:49 +0000 (16:37 -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 bf6751ebb95c4e121d4e8a2bf9c45dd858d4efe2..25639461cc3ae03e147ff0224364c4db21fb8876 100644 (file)
@@ -173,6 +173,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.026529 seconds and 4 git commands to generate.