]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Hgfs FUSE Client: fix missing pthread_mutex_unlock call
authorOliver Kurth <okurth@vmware.com>
Mon, 17 Sep 2018 23:41:18 +0000 (16:41 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 17 Sep 2018 23:41:18 +0000 (16:41 -0700)
Fix missing pthread_mutex_unlock call in HgfsSetAttrCache when
updating the cached attributes on a file and a memory allocation
fails.

open-vm-tools/vmhgfs-fuse/cache.c

index 17acfd6ecb48421b6bad551a68007d89e6cdea75..5e3259f6e01cc423c0b987f46b9fc73d0cd29ccc 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2013 VMware, Inc. All rights reserved.
+ * Copyright (C) 2013-2018 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -373,7 +373,7 @@ HgfsSetAttrCache(const char* path,         //IN: Path of file or directory
 
    tmp = malloc(sizeof(HgfsAttrCache) + strlen(path) + 1);
    if (tmp == NULL) {
-      return -ENOMEM;
+      res = -ENOMEM;
       goto out;
    }