diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index f86256195..f08c9d8b3 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c @@ -822,7 +822,8 @@ static int handle_forget(struct fuse* fuse, struct fuse_handler* handler, hdr->nodeid, node ? node->name : "?"); if (node) { __u64 n = req->nlookup; - while (n--) { + while (n) { + n--; release_node_locked(node); } }