From f8127e81288d40fd88049c14b2bb4cd7f16a5a34 Mon Sep 17 00:00:00 2001 From: rread Date: Fri, 5 Sep 2003 05:57:54 +0000 Subject: [PATCH] The precreate process was leaking ea's that it never used anyway. --- lustre/osc/osc_create.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index dbe1f2c..3fee907 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -213,6 +213,11 @@ void osccd_do_create(struct osc_created *osccd) rc = osc_real_create(oscc->oscc_exp, &oscc->oscc_oa, &oscc->oscc_ea, NULL); + /* This is not used and leaked, so might as well free + * it now.*/ + if (rc == 0 && oscc->oscc_ea != NULL) + obd_free_memmd(oscc->oscc_exp, &oscc->oscc_ea); + spin_lock(&osccd->osccd_lock); spin_lock(&oscc->oscc_lock); list_del_init(&oscc->oscc_list); -- 1.8.3.1