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.8.0_pre1^2~630 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=51c97beb3f3bb68704d33e126561b8c2866ddab3;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. Change-Id: I8fc1391ab43f33c5a8208ff58d1d0641292cf63e 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 --- diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 73f83e03c..223b866d2 100644 --- a/src/afs/VNOPS/afs_vnop_lookup.c +++ b/src/afs/VNOPS/afs_vnop_lookup.c @@ -1932,6 +1932,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