]> git.meshlink.io Git - meshlink/blobdiff - test/channels-aio.c
Never automatically try to bind to ports >= 32768.
[meshlink] / test / channels-aio.c
index 25bcea1e3dcd5e3e84406d3d6983465ab543bf99..19472bad61b0751f9d826aa74ec41cc18fbf0b24 100644 (file)
@@ -2,6 +2,8 @@
 #undef NDEBUG
 #endif
 
+#define _POSIX_C_SOURCE 200809L
+
 #include <assert.h>
 #include <stdio.h>
 #include <unistd.h>
@@ -187,9 +189,12 @@ int main(void) {
                // The non-AIO transfer should have completed before everything else
                assert(!timespec_lt(&out_infos[i].aio_infos[0].ts, &b_received_ts));
                assert(!timespec_lt(&in_infos[i].aio_infos[0].ts, &b_received_ts));
+
+               free(in_infos[i].data);
        }
 
        // Clean up.
 
        close_meshlink_pair(mesh_a, mesh_b);
+       free(outdata);
 }