From 13b3440740a23056bf2bf59c2d7840765b7ab0cc Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Tue, 7 Jun 2005 16:22:20 +0000 Subject: don't forget to call cvs_disconnect() at the end of a remote connection. ok xsa@ --- usr.bin/cvs/cmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/cvs/cmd.c b/usr.bin/cvs/cmd.c index 7236fbc4476..4b94978ab8b 100644 --- a/usr.bin/cvs/cmd.c +++ b/usr.bin/cvs/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.23 2005/06/02 20:12:06 joris Exp $ */ +/* $OpenBSD: cmd.c,v 1.24 2005/06/07 16:22:19 joris Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. @@ -229,5 +229,8 @@ cvs_startcmd(struct cvs_cmd *cmd, int argc, char **argv) if (cmd->cmd_cleanup != NULL) (*cmd->cmd_cleanup)(); + if (root->cr_method != CVS_METHOD_LOCAL) + cvs_disconnect(root); + return (0); } -- cgit v1.2.3