]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Don't leak @reply in virSystemdGetMachineNameByPID
authorWang King <king.wang@huawei.com>
Sat, 20 May 2017 01:31:57 +0000 (09:31 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 22 May 2017 04:48:01 +0000 (06:48 +0200)
commitc4a4c01e6e763cff0a2e110afeb2215bd511b333
tree66fd9a20d8a627d26313123e1bdd05b4bea3ca2b
parentf7c7f450f311e528f048b1d2b8d47baca19cc03f
util: Don't leak @reply in virSystemdGetMachineNameByPID

@reply is a DBusMessage object returned by virDBusCallMethod in
get machine object call path, dereference it before calling
virDBusCallMethod again to get machine name.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virsystemd.c