diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-24 20:29:23 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-26 13:17:16 +0200 |
commit | b16f334192dbac002a33c31645e228d349de3c72 (patch) | |
tree | 56de56999cc5bdd2a173f264c4a5e70b19fae67f /libdiskfs | |
parent | 4a5f9f683e5446309a077f31d1bb8d8b77415ee2 (diff) |
libdiskfs: fix node leak in the name cache
* libdiskfs/name-cache.c (diskfs_check_lookup_cache): Release node
reference in a special case of lookup failure.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/name-cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libdiskfs/name-cache.c b/libdiskfs/name-cache.c index c113692c..a212a6dc 100644 --- a/libdiskfs/name-cache.c +++ b/libdiskfs/name-cache.c @@ -249,6 +249,7 @@ diskfs_check_lookup_cache (struct node *dir, const char *name) { /* Lose */ pthread_mutex_unlock (&np->lock); + diskfs_nrele (np); return 0; } } |