summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldpd/ldpe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldpd/ldpe.c b/ldpd/ldpe.c
index 6e844c0aa1..0a3a03bc38 100644
--- a/ldpd/ldpe.c
+++ b/ldpd/ldpe.c
@@ -459,6 +459,8 @@ static void ldpe_dispatch_main(struct event *thread)
tnbr_update_all(AF_UNSPEC);
break;
case IMSG_RECONF_CONF:
+ if (nconf)
+ ldp_clear_config(nconf);
if ((nconf = malloc(sizeof(struct ldpd_conf))) == NULL)
fatal(NULL);
memcpy(nconf, imsg.data, sizeof(struct ldpd_conf));