]> git.meshlink.io Git - meshlink/blobdiff - test/trio.c
Fix memory leaks in the outgoing packet queue.
[meshlink] / test / trio.c
index 522020fe1d07bbe61d3811095d6fdf7278871ad1..1dc33aa4480756f229c5fb275896e22c2ec4d9ff 100644 (file)
@@ -53,8 +53,8 @@ int main() {
 
        for(int i = 0; i < 3; i++) {
                char *path;
-    int ret_val;
-    (void)ret_val;
+               int ret_val;
+               (void)ret_val;
                ret_val = asprintf(&path, "trio_conf.%d", i);
                assert(path);
 
@@ -85,6 +85,7 @@ int main() {
        // start the nodes
 
        for(int i = 0; i < 3; i++) {
+               free(data[i]);
                assert(meshlink_start(mesh[i]));
        }