qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] block/nbd: fix memory leak in nbd_open
@ 2019-12-05  3:45 pannengyuan
  2019-12-05  3:45 ` [PATCH v5 1/2] block/nbd: extract the common cleanup code pannengyuan
  2019-12-05  3:45 ` [PATCH v5 2/2] block/nbd: fix memory leak in nbd_open() pannengyuan
  0 siblings, 2 replies; 8+ messages in thread
From: pannengyuan @ 2019-12-05  3:45 UTC (permalink / raw)
  To: eblake, kwolf, mreitz
  Cc: liyiting, zhang.zhanghailiang, qemu-block, Pan Nengyuan,
	qemu-devel, kuhn.chenqun

From: Pan Nengyuan <pannengyuan@huawei.com>

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-02-26 23:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05  3:45 [PATCH v5 0/2] block/nbd: fix memory leak in nbd_open pannengyuan
2019-12-05  3:45 ` [PATCH v5 1/2] block/nbd: extract the common cleanup code pannengyuan
2019-12-05  9:42   ` Stefano Garzarella
2019-12-05 14:04     ` Eric Blake
2020-02-25 16:51       ` Max Reitz
2020-02-26 23:25   ` Eric Blake
2019-12-05  3:45 ` [PATCH v5 2/2] block/nbd: fix memory leak in nbd_open() pannengyuan
2019-12-05  9:45   ` Stefano Garzarella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).