[sheepdog] [PATCH] sheep: free the objlist cache entry in objlist_cache_rb_remove

Christoph Hellwig hch at infradead.org
Sat Jun 2 17:39:09 CEST 2012


Without this we never free objlist entries.

Signed-off-by: Christoph Hellwig <hch at lst.de>

diff --git a/sheep/object_list_cache.c b/sheep/object_list_cache.c
index 4e97aa7..87ee056 100644
--- a/sheep/object_list_cache.c
+++ b/sheep/object_list_cache.c
@@ -80,6 +80,7 @@ static int objlist_cache_rb_remove(struct rb_root *root, uint64_t oid)
 			p = &(*p)->rb_right;
 		else {
 			rb_erase(parent, root);
+			free(entry);
 			return 0;
 		}
 	}



More information about the sheepdog mailing list