main: fix memory leak

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2019-07-25 15:41:23 +02:00
parent 22246f29f3
commit 1a3ae79283
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

2
main.c
View File

@ -4142,7 +4142,7 @@ ovl_mkdir (fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode)
struct stat st; struct stat st;
ino_t ino = 0; ino_t ino = 0;
int ret = 0; int ret = 0;
char *path; cleanup_free char *path = NULL;
bool need_delete_whiteout = true; bool need_delete_whiteout = true;
cleanup_lock int l = enter_big_lock (); cleanup_lock int l = enter_big_lock ();