diff options
-rw-r--r-- | socketio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/socketio.c b/socketio.c index 0bcf29b21..fec8d9378 100644 --- a/socketio.c +++ b/socketio.c @@ -1071,11 +1071,12 @@ void netfs_node_norefs (struct node *np) { struct node *dir = np->nn->dir; + struct references result; node_uninstall (np); node_destroy (np); if (np->nn->flags & PROTOCOL_NODE) - dir->references--; + refcounts_demote (&dir->refcounts, &result); } |