]> git.meshlink.io Git - meshlink/blobdiff - test/get-all-nodes.c
Never automatically try to bind to ports >= 32768.
[meshlink] / test / get-all-nodes.c
index 815dc7df328376254f002c7b1c37918deb0c0e96..33adb9a39efd1943daeaa00ec93a156036b7fb29 100644 (file)
@@ -24,6 +24,8 @@ static void status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool reach
 }
 
 int main(void) {
+       init_sync_flag(&bar_reachable);
+
        struct meshlink_node **nodes = NULL;
        size_t nnodes = 0;
 
@@ -75,6 +77,8 @@ int main(void) {
 
                        assert(meshlink_import(mesh[j], data));
                }
+
+               free(data);
        }
 
        // We should know about all nodes now, and their device class.