]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix a memory leak in HgfsOplockMonitorFileChange
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 27 Oct 2020 00:29:54 +0000 (17:29 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 27 Oct 2020 00:29:54 +0000 (17:29 -0700)
In the error case, "data" was not freed.

open-vm-tools/lib/hgfsServer/hgfsServerOplockMonitor.c

index 1d97e5c454a1980d59f38818072389f66c53c63c..8e20f10b4796b20eb254393ba9dd385d6681ef81 100644 (file)
@@ -351,6 +351,7 @@ error:
       free(monitorData->utf8Name);
       free(monitorData);
    }
+   free(data);
 
    MXUser_ReleaseExclLock(oplockMonitorLock);
    return HGFS_OPLOCK_INVALID_MONITOR_HANDLE;