summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorpaul <paul>2005-03-08 16:00:12 +0000
committerpaul <paul>2005-03-08 16:00:12 +0000
commit220851816a699d9977702ea2b2501d4ede76e898 (patch)
tree7c7b2a35e838ea6969258ce83f1f56f770972500 /lib/command.c
parent9c5d8562f8d24574ba1f43881d47cbc8ffc62027 (diff)
2005-03-08 Paul Jakma <paul.jakma@sun.com>
* command.c: (no_banner_motd_cmd) use XFREE. * vty.c: (vty_hello) fix the indentation and comment.
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c
index d83ebe12..cf7f46b9 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1,5 +1,5 @@
/*
- $Id: command.c,v 1.40 2005/03/08 15:56:42 paul Exp $
+ $Id: command.c,v 1.41 2005/03/08 16:00:12 paul Exp $
Command interpreter routine for virtual terminal [aka TeletYpe]
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
@@ -3437,7 +3437,8 @@ DEFUN (no_banner_motd,
"Strings for motd\n")
{
host.motd = NULL;
- if (host.motdfile) free(host.motdfile);
+ if (host.motdfile)
+ XFREE (MTYPE_TMP, host.motdfile);
host.motdfile = NULL;
return CMD_SUCCESS;
}