From: Michael Meffie Date: Tue, 29 Jul 2014 00:57:01 +0000 (-0400) Subject: libafs: fix vrequest leak in afs_lookup X-Git-Tag: upstream/1.6.10_pre1^2~40 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c87e0cd81cadd003ff84641b395092e0d28412f6;p=packages%2Fo%2Fopenafs.git libafs: fix vrequest leak in afs_lookup Fix vrequest leak introduced in commit 9930567bcf9655d3f562b210b2dc4b4a99226691. Thanks to Andrew Deason for finding this error. Reviewed-on: http://gerrit.openafs.org/11337 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Andrew Deason Reviewed-by: Jeffrey Altman (cherry picked from commit 51c97beb3f3bb68704d33e126561b8c2866ddab3) Change-Id: If903c7863ac2ac6420a74e6bea1012c8cbf41913 Reviewed-on: http://gerrit.openafs.org/11364 Tested-by: BuildBot Reviewed-by: Andrew Deason Reviewed-by: Benjamin Kaduk Reviewed-by: Stephan Wiesand --- diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 60462a1c1..d8205b675 100644 --- a/src/afs/VNOPS/afs_vnop_lookup.c +++ b/src/afs/VNOPS/afs_vnop_lookup.c @@ -1938,6 +1938,7 @@ afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, afs_ucred_t *acr code = afs_VerifyVCache(tvc, treq); #else afs_PutFakeStat(&fakestate); + afs_DestroyReq(treq); AFS_DISCON_UNLOCK(); return 0; /* can't have been any errors if hit and !code */ #endif