Displaying 2 results from an estimated 2 matches for "b0ed959".
2019 Jul 25
0
[PATCH libnbd v3 1/2] lib: Implement closure lifetimes.
...0,7 +167,11 @@ read_verify (void *opaque, int64_t cookie, int *error)
data->remaining = r->next;
free (r);
}
- free (data);
+ }
+
+ if (valid_flag & LIBNBD_CALLBACK_FREE)
+ free (opaque);
+
return ret;
}
diff --git a/generator/generator b/generator/generator
index b0ed959..7aad57c 100755
--- a/generator/generator
+++ b/generator/generator
@@ -849,10 +849,7 @@ and arg =
written by the function *)
| BytesPersistIn of string * string (* same as above, but buffer persists *)
| BytesPersistOut of string * string
-| Closure of bool * closu...
2019 Jul 25
4
[PATCH libnbd v3 0/2] lib: Implement closure lifetimes.
I think I've addressed everything that was raised in review.
Some of the highlights:
- Callbacks should be freed reliably along all exit paths.
- There's a simple test of closure lifetimes.
- I've tried to use VALID|FREE in all the places where I'm confident
that it's safe and correct to do. There may be more places. Note
this is an optimization and shouldn't