From: rread Date: Tue, 7 Oct 2003 19:58:59 +0000 (+0000) Subject: - repair leaks X-Git-Tag: v1_7_0_51~2^7~460 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=72a636a100ee08007846c1e676b72d15a3c51c94;p=fs%2Flustre-release.git - repair leaks - get precedence correct in class_find_client_obd --- 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);