]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Use ToolsCmd_FreeRPC() to free the memory instead of vm_free.
authorOliver Kurth <okurth@vmware.com>
Mon, 20 Aug 2018 19:48:08 +0000 (12:48 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 20 Aug 2018 19:48:08 +0000 (12:48 -0700)
commit034695e2d34df7b1a4e44ab8a871ba4799dfac81
tree25a2ecb6e959b2e5e5ff3c298c7f8e8b4b7e3b4a
parentf3f9dcf51a76bc9acfcc2412428a0a3dbb469c09
Use ToolsCmd_FreeRPC() to free the memory instead of vm_free.

There exists a function ToolsCmd_FreeRPC that can be called to free
the memory allocated from the ToolsCmd_SendRPC function call.

At few places in the code, vm_free is used to free the memory.
Replaced those references with ToolsCmd_FreeRPC.
open-vm-tools/toolbox/toolboxcmd-info.c
open-vm-tools/toolbox/toolboxcmd-time.c