From b660463545623e26a5dab2e450cdd8c544d57786 Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 23 Oct 2008 11:00:29 +0000 Subject: [PATCH] b=17447 r=adilger,deen - fixes existing and possible memory leaks; - cleanups. --- lustre/obdclass/class_hash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/obdclass/class_hash.c b/lustre/obdclass/class_hash.c index d3eb668..690122e 100644 --- a/lustre/obdclass/class_hash.c +++ b/lustre/obdclass/class_hash.c @@ -128,8 +128,7 @@ lustre_hash_exit(lustre_hash_t *lh) int i; ENTRY; - if (!lh) - return; + LASSERT(lh != NULL); write_lock(&lh->lh_rwlock); -- 1.8.3.1