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

add missing crfree to avoid leak

(cherry picked from commit 6ce156741b62702e1d1f10f3329f1b77341e32e5)

src/afs/LINUX/osi_vnodeops.c

index f08b7a6..06e8c0b 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;
            }
        }