On Fri 10 Feb 2017 06:09:01 PM CET, Daniel P. Berrange wrote:
> This converts the qcow2 driver to make use of the QCryptoBlock

s/qcow2/qcow/

> APIs for encrypting image content. This is only wired up to
> permit use of the legacy QCow encryption format. Users who wish
> to have the strong LUKS format should switch to qcow2 instead.

> @@ -104,7 +114,18 @@ static int qcow_open(BlockDriverState *bs, QDict 
> *options, int flags,
>      unsigned int len, i, shift;
>      int ret;
>      QCowHeader header;
> +    QemuOpts *opts = NULL;
>      Error *local_err = NULL;
> +    QCryptoBlockOpenOptions *crypto_opts = NULL;
> +    unsigned int cflags = 0;
> +
> +    opts = qemu_opts_create(&qcow_runtime_opts, NULL, 0, &error_abort);

I think you're leaking opts here.

Berto

Reply via email to