The struct doesn't contain any secrets to clear before freeing and even
if it did VIR_DISPOSE_N wouldn't help as the struct contains only
pointers thus the actual memory pointing to isn't sanitized.
Just free the params array pointer and then the struct itself.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
}
}
- VIR_DISPOSE_N(params->params, params->nbAvailParams);
- VIR_FREE(params);
+ g_free(params->params);
+ g_free(params);
}