summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/main.c2
-rw-r--r--hcid/parser.y4
2 files changed, 2 insertions, 4 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 567dfab3..38a4efe0 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -519,6 +519,8 @@ static void sig_hup(int sig)
{
info("Reloading config file");
+ free_device_opts();
+
init_defaults();
if (read_config(hcid.config_file) < 0)
diff --git a/hcid/parser.y b/hcid/parser.y
index b9c90dca..0a162b36 100644
--- a/hcid/parser.y
+++ b/hcid/parser.y
@@ -331,9 +331,5 @@ int read_config(char *file)
fclose(yyin);
-#if 0
- yylex_destroy();
-#endif
-
return 0;
}