[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 0/2] block/nbd: fix memory leak in nbd_open
From: |
pannengyuan |
Subject: |
[PATCH v5 0/2] block/nbd: fix memory leak in nbd_open |
Date: |
Thu, 5 Dec 2019 11:45:26 +0800 |
From: Pan Nengyuan <address@hidden>
This series add a new function to do the common cleanups, and fix a memory
leak in nbd_open when nbd_client_connect returns error status.
---
Changes v2 to v1:
- add a new function to do the common cleanups (suggested by Stefano
Garzarella).
---
Changes v3 to v2:
- split in two patches(suggested by Stefano Garzarella)
---
Changes v4 to v3:
- replace function name from nbd_free_bdrvstate_prop to nbd_clear_bdrvstate and
add Fixes tag(suggested by Eric Blake).
- remove static function prototype. (suggested by Eric Blake)
---
Changes v5 to v4:
- correct the wrong email address
Pan Nengyuan (2):
block/nbd: extract the common cleanup code
block/nbd: fix memory leak in nbd_open()
block/nbd.c | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
--
2.7.2.windows.1
- [PATCH v5 0/2] block/nbd: fix memory leak in nbd_open,
pannengyuan <=