From 72a636a100ee08007846c1e676b72d15a3c51c94 Mon Sep 17 00:00:00 2001 From: rread Date: Tue, 7 Oct 2003 19:58:59 +0000 Subject: [PATCH] - repair leaks - get precedence correct in class_find_client_obd --- lustre/obdclass/obd_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index bf0800c..a66bdff 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -347,7 +347,7 @@ int class_add_profile(int proflen, char *prof, struct lustre_profile *lprof; int err = 0; - OBD_ALLOC(lprof, sizeof(*prof)); + OBD_ALLOC(lprof, sizeof(*lprof)); if (lprof == NULL) GOTO(out, err = -ENOMEM); INIT_LIST_HEAD(&lprof->lp_list); -- 1.8.3.1