summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2009-02-15 13:22:21 +0000
committerlulf <lulf@FreeBSD.org>2009-02-15 13:22:21 +0000
commit9af3f80126596460c12c06c8d1bf8484a557aefc (patch)
treecb5e6c1d1aa0ae405023b5961e809539a1503a5b /contrib
parent4ed35034a25003a6c3528764c5c739d6ceb8cdd0 (diff)
downloadFreeBSD-src-9af3f80126596460c12c06c8d1bf8484a557aefc.zip
FreeBSD-src-9af3f80126596460c12c06c8d1bf8484a557aefc.tar.gz
- 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
Diffstat (limited to 'contrib')
-rw-r--r--contrib/csup/proto.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/contrib/csup/proto.c b/contrib/csup/proto.c
index 421ccff..15c1235 100644
--- a/contrib/csup/proto.c
+++ b/contrib/csup/proto.c
@@ -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))
OpenPOWER on IntegriCloud