]> git.meshlink.io Git - meshlink/blobdiff - test/channels-aio-fd.c
Fix several memory leaks.
[meshlink] / test / channels-aio-fd.c
index 677944b85957c90c3c5cd46a2168c064b679c89c..3cac823c5c0943ceb37e11bd816264ae81373e70 100644 (file)
@@ -2,6 +2,8 @@
 #undef NDEBUG
 #endif
 
+#define _POSIX_C_SOURCE 200809L
+
 #include <assert.h>
 #include <stdio.h>
 #include <unistd.h>
@@ -173,4 +175,5 @@ int main(void) {
        // Clean up.
 
        close_meshlink_pair(mesh_a, mesh_b);
+       free(outdata);
 }