[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] cryptodev: fix memory leak
From: |
Lei He |
Subject: |
[PATCH 0/2] cryptodev: fix memory leak |
Date: |
Wed, 2 Nov 2022 17:02:41 +0800 |
- 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(-)
--
2.11.0
- [PATCH 0/2] cryptodev: fix memory leak,
Lei He <=