summaryrefslogtreecommitdiff
path: root/usr.sbin/sup/source/supmsg.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-03-22 16:45:48 +0000
committerchristos <christos@NetBSD.org>2006-03-22 16:45:48 +0000
commitb8595bc4e514873db284cf5b7da7aea34307b782 (patch)
tree80854f16eff1f8e4dc4666fe627ed98a4190c224 /usr.sbin/sup/source/supmsg.c
parent18358a08096aa2fc5847e3011fc9d7ccff6330d2 (diff)
Coverity CID 2581: set variable to NULL after free.
Diffstat (limited to 'usr.sbin/sup/source/supmsg.c')
-rw-r--r--usr.sbin/sup/source/supmsg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sup/source/supmsg.c b/usr.sbin/sup/source/supmsg.c
index 53f41613377..bc858ee91ff 100644
--- a/usr.sbin/sup/source/supmsg.c
+++ b/usr.sbin/sup/source/supmsg.c
@@ -1,4 +1,4 @@
-/* $NetBSD: supmsg.c,v 1.13 2006/03/22 16:44:30 christos Exp $ */
+/* $NetBSD: supmsg.c,v 1.14 2006/03/22 16:45:48 christos Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@@ -508,6 +508,7 @@ msgdeny(void)
break;
(void) Tinsert(&denyT, name, FALSE);
free(name);
+ name = NULL;
x = readstring(&name);
}
if (x == SCMOK)