linux-lookup-crfree-20070220
authorKevin Hildebrand <kevin@umd.edu>
Tue, 20 Feb 2007 18:03:26 +0000 (18:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 20 Feb 2007 18:03:26 +0000 (18:03 +0000)
FIXES 54549

add missing crfree to avoid leak

src/afs/LINUX/osi_vnodeops.c

index f5f8fa1..295dc4c 100644 (file)
@@ -1025,6 +1025,7 @@ afs_linux_lookup(struct inode *dip, struct dentry *dp)
 #if defined(AFS_LINUX26_ENV)
                unlock_kernel();
 #endif
+               crfree(credp);
                return alias;
            }
        }