From owner-svn-src-head@FreeBSD.ORG Sun Feb 15 13:22:22 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E13E106566C; Sun, 15 Feb 2009 13:22:22 +0000 (UTC) (envelope-from lulf@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2C32C8FC1F; Sun, 15 Feb 2009 13:22:22 +0000 (UTC) (envelope-from lulf@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1FDMMZV079752; Sun, 15 Feb 2009 13:22:22 GMT (envelope-from lulf@svn.freebsd.org) Received: (from lulf@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1FDMMYt079751; Sun, 15 Feb 2009 13:22:22 GMT (envelope-from lulf@svn.freebsd.org) Message-Id: <200902151322.n1FDMMYt079751@svn.freebsd.org> From: Ulf Lilleengen Date: Sun, 15 Feb 2009 13:22:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188644 - head/contrib/csup X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2009 13:22:22 -0000 Author: lulf Date: Sun Feb 15 13:22:21 2009 New Revision: 188644 URL: http://svn.freebsd.org/changeset/base/188644 Log: - Do not free the pattern lists immediately after use, as they might be needed again in case the connection is interrupted and csup have to reconnect. The lists will be freed after the collection has been completely processed. PR: bin/131477 Tested by: dchagin Modified: head/contrib/csup/proto.c Modified: head/contrib/csup/proto.c ============================================================================== --- head/contrib/csup/proto.c Sun Feb 15 12:10:05 2009 (r188643) +++ head/contrib/csup/proto.c Sun Feb 15 13:22:21 2009 (r188644) @@ -521,12 +521,6 @@ proto_xchgcoll(struct config *config) coll->co_filefilter = globtree_and(fileaccept, globtree_not(filerefuse)); - /* At this point we don't need the pattern lists anymore. */ - pattlist_free(coll->co_accepts); - pattlist_free(coll->co_refusals); - coll->co_accepts = NULL; - coll->co_refusals = NULL; - /* Set up a mask of file attributes that we don't want to sync with the server. */ if (!(coll->co_options & CO_SETOWNER))