commit | d4c64800bbe1332328695a551b84ae68590c90fd | [log] [tgz] |
---|---|---|
author | Marc-André Lureau <marcandre.lureau@redhat.com> | Wed Nov 09 14:28:18 2016 +0400 |
committer | Daniel P. Berrange <berrange@redhat.com> | Wed Dec 21 14:26:26 2016 +0000 |
tree | cb1ceb45db7ac578f0f197b4fe164bd0cfb83205 | |
parent | 82ecffa8c050bf5bbc13329e9b65eac1caa5b55c [diff] |
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>