X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fopt%2Fopt.h;h=5757778577e2079b31641f176dd6976fe11c4d3d;hp=0748fe6a7f0694f831ea94c85439d1a0ba65cc76;hb=a39bf3aca1b60365efaf8b1eeb2b2c58b09ffab6;hpb=59d2b90f59df57007c97cd8f8dc3db9e24781e06 diff --git a/ccan/opt/opt.h b/ccan/opt/opt.h index 0748fe6a..57577785 100644 --- a/ccan/opt/opt.h +++ b/ccan/opt/opt.h @@ -183,6 +183,14 @@ void opt_register_table(const struct opt_table *table, const char *desc); */ bool opt_parse(int *argc, char *argv[], void (*errlog)(const char *fmt, ...)); +/** + * opt_free_table - free the table. + * + * This frees the internal memory. Call this as the last + * opt function. + */ +void opt_free_table(void); + /** * opt_log_stderr - print message to stderr. * @fmt: printf-style format.