summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormikeh <mikeh@FreeBSD.org>2001-06-20 01:56:09 +0000
committermikeh <mikeh@FreeBSD.org>2001-06-20 01:56:09 +0000
commitd795e6a8262b77835dd02cd6ec7b51c70efb6c50 (patch)
tree9c1c40401d1c1926efbb62079fbed3ce55e505eb /sbin
parent8a3438e4932ef13ca11728389d9d9699dfe542ab (diff)
downloadFreeBSD-src-d795e6a8262b77835dd02cd6ec7b51c70efb6c50.zip
FreeBSD-src-d795e6a8262b77835dd02cd6ec7b51c70efb6c50.tar.gz
Fix typo which could lead to memory leak.
PR: misc/28283 MFC after: 2 weeks
Diffstat (limited to 'sbin')
-rw-r--r--sbin/init/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 67a2eac..49aa374 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -1418,7 +1418,7 @@ clean_ttys()
}
if (old_getty)
free(old_getty);
- if (old_getty)
+ if (old_window)
free(old_window);
if (old_type)
free(old_type);
OpenPOWER on IntegriCloud