summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vty/logging_vty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c
index 4cab22a3..b037a5bc 100644
--- a/src/vty/logging_vty.c
+++ b/src/vty/logging_vty.c
@@ -269,6 +269,8 @@ gDEFUN(cfg_description, cfg_description_cmd,
return CMD_WARNING;
}
+ if (*dptr)
+ talloc_free(*dptr);
*dptr = argv_concat(argv, argc, 0);
if (!dptr)
return CMD_WARNING;