]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hyperv: Make it obvious that hypervAddEmbeddedParam() consumes an argument
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 15 Oct 2020 13:31:51 +0000 (15:31 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Oct 2020 09:13:10 +0000 (11:13 +0200)
commite0a09c243cdc2dcc2ba635e9840b6e9460e5cf0f
tree70db24df58c1de6bc6cac7c1e64a7c01549d0f68
parent49562e92e8ec87bc605c7a15ed015988e427f74a
hyperv: Make it obvious that hypervAddEmbeddedParam() consumes an argument

Upon successful return hypervAddEmbeddedParam() transfers
ownership of @table argument to @params. But because it takes
only simple pointer (which hides this ownership transfer) it
doesn't clear the @table pointer.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Matt Coleman <matt@datto.com>
src/hyperv/hyperv_driver.c
src/hyperv/hyperv_wmi.c
src/hyperv/hyperv_wmi.h