]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: Unref @cfg in virCHProcessStop()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 13 Mar 2025 12:02:33 +0000 (13:02 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 13 Mar 2025 14:51:15 +0000 (15:51 +0100)
commit5ed2ed870826716557f6cf5e236f044f1ccdd49d
tree0bc91104a8ba45036e22dbd829eda0a56cb188d4
parentb9a10cf4bb3fee45c4ae9a85711a977af52a7c4c
ch: Unref @cfg in virCHProcessStop()

At the beginning of virCHProcessStop() the ref to driver config
is obtained (via virCHDriverGetConfig()), but corresponding unref
call is lacking. Use g_autoptr() to make sure the config is
unrefed always.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/ch/ch_process.c