From ac1252e2d3d36e747bd51655615959034fae28c5 Mon Sep 17 00:00:00 2001 From: tappro Date: Mon, 14 Aug 2006 22:37:24 +0000 Subject: [PATCH] forgotten lu_object_put() in case of error --- lustre/osd/osd_oi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/osd/osd_oi.c b/lustre/osd/osd_oi.c index ce1ec78..c6bdb90 100644 --- a/lustre/osd/osd_oi.c +++ b/lustre/osd/osd_oi.c @@ -93,9 +93,11 @@ int osd_oi_init(struct osd_thread_info *info, if (result == 0) { LASSERT(obj->do_index_ops != NULL); oi->oi_dir = obj; - } else + } else { CERROR("Wrong index \"%s\": %d\n", oi_dirname, result); + lu_object_put(ctx, &obj->do_lu); + } } else { result = PTR_ERR(obj); CERROR("Cannot open \"%s\": %d\n", oi_dirname, result); -- 1.8.3.1