diff options
-rw-r--r-- | client/gvfsfusedaemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c index e2038504..1ccef249 100644 --- a/client/gvfsfusedaemon.c +++ b/client/gvfsfusedaemon.c @@ -1091,6 +1091,9 @@ open_common (const gchar *path, struct fuse_file_info *fi, GFile *file, int outp g_mutex_unlock (&fh->mutex); + if (result < 0) + file_handle_unref (fh); + /* The added reference to the file handle is released in vfs_release() */ return result; } |