From: Oliver Kurth Date: Mon, 17 Sep 2018 23:41:18 +0000 (-0700) Subject: Hgfs FUSE Client: fix missing pthread_mutex_unlock call X-Git-Tag: stable-10.3.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdde701699212ca7fb118f3a49a9bbc7fb06df68;p=thirdparty%2Fopen-vm-tools.git Hgfs FUSE Client: fix missing pthread_mutex_unlock call Fix missing pthread_mutex_unlock call in HgfsSetAttrCache when updating the cached attributes on a file and a memory allocation fails. --- diff --git a/open-vm-tools/vmhgfs-fuse/cache.c b/open-vm-tools/vmhgfs-fuse/cache.c index 17acfd6ec..5e3259f6e 100644 --- a/open-vm-tools/vmhgfs-fuse/cache.c +++ b/open-vm-tools/vmhgfs-fuse/cache.c @@ -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; }