From 51c97beb3f3bb68704d33e126561b8c2866ddab3 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Mon, 28 Jul 2014 20:57:01 -0400 Subject: [PATCH] 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 --- src/afs/VNOPS/afs_vnop_lookup.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5