Ticket #22752: unmap_hack.patch

File unmap_hack.patch, 508 bytes (added by Vort, 4 months ago)
  • src/or/conscache.c

    diff --git a/src/or/conscache.c b/src/or/conscache.c
    index 5ffa129..2ce2f04 100644
    a b consensus_cache_delete_pending(consensus_cache_t *cache, int force) 
    439439    SMARTLIST_DEL_CURRENT(cache->entries, ent);
    440440    ent->in_cache = NULL;
    441441    char *fname = tor_strdup(ent->fname); /* save a copy */
     442    consensus_cache_entry_unmap(ent);
    442443    consensus_cache_entry_decref(ent);
    443444    storage_dir_remove_file(cache->dir, fname);
    444445    tor_free(fname);