mbox series

[0/2] cryptodev: fix memory leak

Message ID 20221102090243.52140-1-helei.sig11@bytedance.com (mailing list archive)
Headers show
Series cryptodev: fix memory leak | expand

Message

Lei He Nov. 2, 2022, 9:02 a.m. UTC
- Avoid using g_autoptr to free memory that not allocated
in the same function.
- Fix memory-leak when 'virtio_crypto_handle_request' returns
no-zero value.
- When error occurred, always pass negative status to function
'vritio_crypto_req_complete'.

Lei He (2):
  cryptodev: avoid unreasonable use of g_autoptr
  cryptodev: fix memory-leak occurs on error path

 hw/virtio/virtio-crypto.c | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)