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.9.0-rc1~205 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=b86d5f3ff9f8056db2590f881044b7ecbfc21527 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 f75e7b006..30a5f106b 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -189,6 +189,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; }