#include <ccan/opt/parse.c>
#include "utils.h"
-static void reset_options(void)
-{
- free(opt_table);
- opt_table = NULL;
- opt_count = opt_num_short = opt_num_short_arg = opt_num_long = 0;
- free(err_output);
- err_output = NULL;
-}
-
int main(int argc, char *argv[])
{
const char *myname = argv[0];
ok1(strcmp(argv[4], "-a") == 0);
ok1(!argv[5]);
+ /* parse_args allocates argv */
+ free(argv);
return exit_status();
}