- 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:
Ulf Lilleengen 2009-02-15 13:22:21 +00:00
parent 15c834931c
commit d1ec640bcf

View File

@ -521,12 +521,6 @@ proto_xchgcoll(struct config *config)
coll->co_filefilter = globtree_and(fileaccept, coll->co_filefilter = globtree_and(fileaccept,
globtree_not(filerefuse)); 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 /* Set up a mask of file attributes that we don't want to sync
with the server. */ with the server. */
if (!(coll->co_options & CO_SETOWNER)) if (!(coll->co_options & CO_SETOWNER))