Squash a leak in LRU caches

This commit is contained in:
ridiculousfish
2012-02-17 14:54:58 -08:00
parent 3b56c58f00
commit 51da4856e2
4 changed files with 14 additions and 7 deletions

View File

@@ -1005,7 +1005,7 @@ static int try_remove( env_node_t *n,
has_changed = 1;
}
n->env.erase(result);
n->env.erase(result);
delete v;
return 1;
}