On 11/24/20 8:20 PM, Daniel Henrique Barboza wrote:
Register an AUTOPTR_CLEANUP_FUNC for virDomainDiskDefPtr, then
use g_autoptr() in virDomainDiskDef and virStorageEncryption
pointers to get rid of the 'cleanup' and 'error' labels.

Signed-off-by: Daniel Henrique Barboza <danielhb...@gmail.com>
---
  src/conf/domain_conf.c | 95 +++++++++++++++++++-----------------------
  src/conf/domain_conf.h |  1 +
  2 files changed, 45 insertions(+), 51 deletions(-)

Reviewed-by: Michal Privoznik <mpriv...@redhat.com>

Michal

Reply via email to