From d07d3947fa84b7464fcb85b860fae43eebc683dd Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 17 May 2006 12:44:17 +0000 Subject: fix leak --- bin/rcp/rcp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index 417a1f2f31a..c3f71b240d2 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcp.c,v 1.44 2006/03/23 02:48:57 deraadt Exp $ */ +/* $OpenBSD: rcp.c,v 1.45 2006/05/17 12:44:16 markus Exp $ */ /* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rcp.c 8.2 (Berkeley) 4/2/94"; #else -static const char rcsid[] = "$OpenBSD: rcp.c,v 1.44 2006/03/23 02:48:57 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: rcp.c,v 1.45 2006/05/17 12:44:16 markus Exp $"; #endif #endif /* not lint */ @@ -326,6 +326,7 @@ toremote(char *targ, int argc, char *argv[]) } } free(user); + free(arg); } void -- cgit v1.2.3