]> git.ozlabs.org Git - ccan/blobdiff - ccan/crcsync/test/run.c
crcsync: fix memory leak in tests.
[ccan] / ccan / crcsync / test / run.c
index ffc2bc1f5517444fbdf345e246438a11e14ee8dc..f51ac23f0d459c54e45193280fac3018b55ca8dd 100644 (file)
@@ -1,6 +1,6 @@
-#include "crcsync/crcsync.h"
-#include "../crcsync.c"
-#include "tap/tap.h"
+#include <ccan/crcsync/crcsync.h>
+#include <ccan/crcsync/crcsync.c>
+#include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <stdbool.h>
 #include <string.h>
@@ -285,5 +285,7 @@ int main(int argc, char *argv[])
                          BLOCK_SIZE, res, num_res);
        }
 
+       free(buffer1);
+       free(buffer2);
        return exit_status();
 }