Marc-André Lureau d4c64800bb cipher: fix leak on initialization error
On error path, ctx may be leaked. Assign ctx earlier, and call
qcrypto_cipher_free() on error.

Spotted thanks to ASAN.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2016-12-21 14:26:26 +00:00
..
2016-01-29 15:07:22 +00:00
2016-09-23 11:42:52 +08:00
2016-10-19 10:09:24 +01:00
2016-10-19 10:09:24 +01:00
2016-01-29 15:07:22 +00:00
2016-09-12 12:00:52 +01:00