Displaying 2 results from an estimated 2 matches for "9cb12b59".
2020 Aug 25
0
[nbdkit PATCH 3/5] api: Add nbdkit_string_intern helper
..._mutex_destroy (&conn->status_lock);
free (conn->exportname_from_set_meta_context);
- free (conn->exportname);
+ free_interns ();
/* This is needed in order to free a field in struct handle. */
for_each_backend (b)
diff --git a/server/main.c b/server/main.c
index 17c4c324..9cb12b59 100644
--- a/server/main.c
+++ b/server/main.c
@@ -631,15 +631,9 @@ main (int argc, char *argv[])
*
* Keys must live for the life of nbdkit. Since we want to avoid
* modifying argv (so that /proc/PID/cmdline remains sane) but we
- * need to create a key from argv[i] = "key=value...
2020 Aug 25
9
[nbdkit PATCH 0/5] Implement .default_export, nbdkit_string_intern
More patches on the way for improving .list_exports signature and
adding .export_description, but this is the promised code showing
why nbdkit_string_intern is useful. Patch 4 is somewhat RFC: we
could either add new API to take the boilerplate from:
foo_config(const char *key, const char *value) {
if (strcmp (key, "file") == 0) {
CLEANUP_FREE char *tmp = nbdkit_realpath (value);