From eb15d8cce58abf6daf8d4420a08785a3b3e399bd Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Thu, 19 Mar 2015 11:59:30 -0400 Subject: [PATCH] Added call to opts_reset() to opts_parse_error() --- source/opts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/opts.c b/source/opts.c index 0ca18a4..721577a 100755 --- a/source/opts.c +++ b/source/opts.c @@ -133,6 +133,7 @@ static char* opts_parse_optarg(stream_ctx_t* ctx, char* opt_name) { static void opts_parse_error(const char* msg, char* opt_name) { fprintf(stderr, "Option '%s' : %s\n", opt_name, msg); free(opt_name); + opts_reset(); exit(1); } -- 2.51.0