[PATCH 13/34] libmount: fix memory leak [clang-analyzer]

Sami Kerola
2013-07-07T19:55:35Z

libmount/src/utils.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/libmount/src/utils.c b/libmount/src/utils.c
index 1655764..7714b50 100644
--- a/libmount/src/utils.c
+++ b/libmount/src/utils.c
@@ -198,6 +198,7 @@ int mnt_chdir_to_parent(const char *target, char **filename)
else
memcpy(*filename, last, strlen(last) + 1);
}
+ free(buf);
return 0;
err:
free(buf);
--
1.8.3.2