diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-17 14:54:58 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-17 14:54:58 -0800 |
commit | 51da4856e2ff124d8d5ad7a4a6ca844c81825133 (patch) | |
tree | 801c4e75be2bd9469f5d98f480a20d2dce4021e3 /lru.h | |
parent | 3b56c58f00c382ceb83eac78baede3a4b76c08a0 (diff) |
Squash a leak in LRU caches
Diffstat (limited to 'lru.h')
-rw-r--r-- | lru.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -101,6 +101,9 @@ class lru_cache_t { mouth.prev = mouth.next = &mouth; } + /** Note that we do not define a destructor. We cannot evict all nodes (even though they typically need to be deleted by their creator). */ + + /** Returns the node for a given key, or NULL */ node_type_t *get_node(const wcstring &key) { node_type_t *result = NULL; |