From: Michael Jeanson Date: Mon, 16 May 2016 23:27:30 +0000 (-0400) Subject: Fix: Add missing free() in utils_partial_realpath X-Git-Tag: v2.6.3~37 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d8875fa808df48925e0383e969adbc1efe55198b;p=lttng-tools.git Fix: Add missing free() in utils_partial_realpath Fixes coverity #1328401 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/utils.c b/src/common/utils.c index bf6751ebb..25639461c 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -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; }