- 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
This commit is contained in:
parent
15c834931c
commit
d1ec640bcf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188644
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user