[Libguestfs] [libnbd PATCH 0/2] Fix memory leak with closures

Eric Blake eblake at redhat.com
Mon Sep 7 21:46:38 UTC 2020


As promised in my earlier thread on libnbd completion callback question.

Eric Blake (2):
  generator: Refactor handling of closures in unlocked functions
  generator: Free closures on failure

 docs/libnbd.pod           |   2 +-
 generator/C.ml            |  48 +++++++++++------
 generator/C.mli           |   1 +
 lib/debug.c               |   7 +--
 lib/opt.c                 |  31 ++++++-----
 lib/rw.c                  | 109 +++++++++++++++++++++++---------------
 tests/closure-lifetimes.c |  63 +++++++++++++++++++++-
 tests/newstyle-limited.c  |  18 ++++++-
 8 files changed, 200 insertions(+), 79 deletions(-)

-- 
2.28.0




More information about the Libguestfs mailing list