From 1a3ae792831183bbf232cb1b824e33fcb9f91953 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 25 Jul 2019 15:41:23 +0200 Subject: [PATCH] main: fix memory leak Signed-off-by: Giuseppe Scrivano --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 7fc6dc6..fd1a580 100644 --- a/main.c +++ b/main.c @@ -4142,7 +4142,7 @@ ovl_mkdir (fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode) struct stat st; ino_t ino = 0; int ret = 0; - char *path; + cleanup_free char *path = NULL; bool need_delete_whiteout = true; cleanup_lock int l = enter_big_lock ();