chExtractVersion: use g_auto*
chExtractVersion: use g_auto*

There are two variables that can be freed automatically: @cmd
(which allows us to drop explicit virCommandFree() call at the
end of the function) and @help which was never freed (and thus
leaked).

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

olafhering/libvirt,nertpinx/libvirt,nertpinx/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,crobinso/libvirt,olafhering/libvirt,nertpinx/libvirt,libvirt/libvirt,nertpinx/libvirt,zippy2/libvirt,libvirt/libvirt,libvirt/libvirt,jfehlig/libvirt,zippy2/libvirt,libvirt/libvirt,zippy2/libvirt,jfehlig/libvirt,crobinso/libvirt,jfehlig/libvirt,crobinso/libvirt,olafhering/libvirt,olafhering/libvirt,crobinso/libvirt