From e2d8f394ccddf785219c9fd27db8496d6d630cc3 Mon Sep 17 00:00:00 2001 From: itojun Date: Tue, 22 Apr 2003 03:03:16 +0000 Subject: [PATCH] free vis_user --- libexec/talkd/announce.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libexec/talkd/announce.c b/libexec/talkd/announce.c index 7dd8ee4347c9..132a68688141 100644 --- a/libexec/talkd/announce.c +++ b/libexec/talkd/announce.c @@ -1,4 +1,4 @@ -/* $NetBSD: announce.c,v 1.18 2003/04/22 03:02:14 itojun Exp $ */ +/* $NetBSD: announce.c,v 1.19 2003/04/22 03:03:16 itojun Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)announce.c 8.3 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: announce.c,v 1.18 2003/04/22 03:02:14 itojun Exp $"); +__RCSID("$NetBSD: announce.c,v 1.19 2003/04/22 03:03:16 itojun Exp $"); #endif #endif /* not lint */ @@ -140,6 +140,7 @@ print_mesg(tty, request, remote_machine) i++; (void)snprintf(line_buf[i], N_CHARS, "talk: respond with: talk %s@%s", vis_user, remote_machine); + free(vis_user); sizes[i] = strlen(line_buf[i]); max_size = max(max_size, sizes[i]); i++;