]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
[lib/file]: remove useless heap allocation
authorOliver Kurth <okurth@vmware.com>
Fri, 23 Mar 2018 21:57:12 +0000 (14:57 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 23 Mar 2018 21:57:12 +0000 (14:57 -0700)
commit4eff69adab058331a1e93aee17ed9a4e13fa8714
tree48618b08896fd8865dabcbe19f09b1c96f1338b6
parent6de42f7d96fb5c70d70ae3b68011477f8b93aef2
[lib/file]: remove useless heap allocation

FileIO_AtomicUpdateEx allocates the argument to the "swap" ioctl
on the heap. This argument is a struct which contains a single int
fd... there is no need to heap-allocate it, the stack is just fine.
open-vm-tools/lib/file/fileIO.c