diff --git a/fs/vfs/fs_close.c b/fs/vfs/fs_close.c index 980df65585c..b7b5cee751a 100644 --- a/fs/vfs/fs_close.c +++ b/fs/vfs/fs_close.c @@ -139,9 +139,8 @@ int file_close(FAR struct file *filep) inode_release(inode); } - #ifdef CONFIG_FS_NOTIFY - if (path != NULL) + else if (path != NULL) { lib_put_pathbuffer(path); }