]> git.ipfire.org Git - thirdparty/libvirt.git/commit
examples: domtop: Avoid leaking memory
authorPeter Krempa <pkrempa@redhat.com>
Mon, 21 Jul 2014 07:53:17 +0000 (09:53 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 21 Jul 2014 13:20:59 +0000 (15:20 +0200)
commitba2b4da02d884acc6ee80057b8675e8e83901be0
tree2254f60a5b927e85d10d58f4c3a0c7d5d5644df0
parentabab113bd237c4700190db32e01db352569d9b3f
examples: domtop: Avoid leaking memory

Use the virTypedParamsFree unconditionally as it handles NULL well and
has the benefit of freeing a typed parameter array even if it wasn't yet
assigned, but only allocated.
examples/domtop/domtop.c