From f101e2eebec54c87f2675a8e2a57f3418a824b9b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 2 Nov 2008 16:41:31 +0100 Subject: [PATCH] Fix interactive reset command. We have to invalidate both the format info and the array of admissible urls. --- interactive.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.39.5