timer: handle time going backwards.
[ccan] / ccan / opt / test / run-no-options.c
index 98ab8d903d3c79c44b2d98a68b7bcde14795fb30..cf255fee0aee7c6d4c02d93581c9cdf531a508c9 100644 (file)
@@ -3,6 +3,8 @@
 #include <stdlib.h>
 #include <ccan/opt/opt.c>
 #include <ccan/opt/usage.c>
+#include <ccan/opt/helpers.c>
+#include <ccan/opt/parse.c>
 #include "utils.h"
 
 int main(int argc, char *argv[])
@@ -23,6 +25,9 @@ int main(int argc, char *argv[])
        ok1(strcmp(argv[1], "extra") == 0);
        ok1(strcmp(argv[2], "args") == 0);
 
+       /* parse_args allocates argv */
+       free(argv);
+
        return exit_status();
 }