Index: proto.c =================================================================== --- proto.c (revisjon 188494) +++ proto.c (arbeidskopi) @@ -521,12 +521,6 @@ 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)) Index: config.c =================================================================== --- config.c (revisjon 188494) +++ config.c (arbeidskopi) @@ -269,6 +269,8 @@ while (!STAILQ_EMPTY(&config->colls)) { coll = STAILQ_FIRST(&config->colls); STAILQ_REMOVE_HEAD(&config->colls, co_next); + pattlist_free(coll->co_accepts); + pattlist_free(coll->co_refusals); coll_free(coll); } if (config->server != NULL)