From: Andre Noll Date: Sun, 2 Nov 2008 15:41:31 +0000 (+0100) Subject: Fix interactive reset command. X-Git-Tag: v0.0.4~9 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=f101e2eebec54c87f2675a8e2a57f3418a824b9b;p=adu.git Fix interactive reset command. We have to invalidate both the format info and the array of admissible urls. --- diff --git a/interactive.c b/interactive.c index 69b0343..4e4ccc7 100644 --- a/interactive.c +++ b/interactive.c @@ -70,6 +70,10 @@ void print_interactive_help(void) static int icom_reset(__a_unused char *line) { + free_format_info(fi); + fi = NULL; + free(admissible_uids); + admissible_uids = NULL; select_cmdline_parser_init(&select_conf); return 1; } @@ -90,6 +94,8 @@ static int icom_set(char *line) free_format_info(fi); fi = NULL; + free(admissible_uids); + admissible_uids = NULL; return parse_select_options(line, ¶ms, &admissible_uids, &fi); }