From 79063bcf4227e1f7c29670a8456dfe51e0bc80ba Mon Sep 17 00:00:00 2001
From: deen <deen>
Date: Wed, 24 Sep 2008 21:52:40 +0000
Subject: [PATCH] Properly free struct lookup_intent instance at the end of
 llu_iop_lookup().

b=12787
i=johann
i=oleg.drokin
---
 lustre/liblustre/namei.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lustre/liblustre/namei.c b/lustre/liblustre/namei.c
index dc54a7e5f7..2857baf8a6 100644
--- a/lustre/liblustre/namei.c
+++ b/lustre/liblustre/namei.c
@@ -595,6 +595,8 @@ int llu_iop_lookup(struct pnode *pnode,
         }
 
 out:
+        if (it)
+                OBD_FREE(it, sizeof(*it));
         liblustre_wait_event(0);
         RETURN(rc);
 }
-- 
GitLab