From c08211ddd7b98423a7fe1bcdadb4c33b6d6622d2 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 6 Feb 2024 10:21:50 +0100 Subject: [PATCH] main: automatically cleanup newpath this was already the assumption in the source code. Signed-off-by: Giuseppe Scrivano --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index f4e7c7c..3a49a1b 100644 --- a/main.c +++ b/main.c @@ -1092,7 +1092,7 @@ direct_renameat2 (int olddirfd, const char *oldpath, static int hide_node (struct ovl_data *lo, struct ovl_node *node, bool unlink_src) { - char *newpath = NULL; + cleanup_free char *newpath = NULL; int ret; ret = asprintf (&newpath, "%lu", get_next_wd_counter ());