diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-11-09 14:28:18 +0400 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2016-12-21 14:26:26 +0000 |
commit | d4c64800bbe1332328695a551b84ae68590c90fd (patch) | |
tree | cb1ceb45db7ac578f0f197b4fe164bd0cfb83205 /target-moxie/helper.c | |
parent | 82ecffa8c050bf5bbc13329e9b65eac1caa5b55c (diff) | |
download | qemu-d4c64800bbe1332328695a551b84ae68590c90fd.zip qemu-d4c64800bbe1332328695a551b84ae68590c90fd.tar.gz qemu-d4c64800bbe1332328695a551b84ae68590c90fd.tar.bz2 |
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>
Diffstat (limited to 'target-moxie/helper.c')
0 files changed, 0 insertions, 0 deletions