tools/xenstore: fix use after free bug in xenstore_control
authorJuergen Gross <jgross@suse.com>
Mon, 25 Jan 2021 07:23:31 +0000 (08:23 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 25 Jan 2021 15:13:29 +0000 (15:13 +0000)
commit1d24e551b99a85f50c69e72b7828a7d6c4c4e7a5
tree916926166f9437b1e36cb9f9eb5b7712e34cc3e1
parent452ddbe3592b141b05a7e0676f09c8ae07f98fdd
tools/xenstore: fix use after free bug in xenstore_control

There is a very unlikely use after free bug and a memory leak in
live_update_start() of xenstore_control. Fix those.

Coverity-Id: 1472399
Fixes: 7f97193e6aa858 ("tools/xenstore: add live update command to xenstore-control")
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/xenstore/xenstore_control.c