From e5d2de127470c4dc3c00ff4722a6fc22d47f7578 Mon Sep 17 00:00:00 2001 From: johann Date: Thu, 28 May 2009 11:23:49 +0000 Subject: [PATCH] Branch b1_8 b=18092 i=adilger i=johann (patch from Girish) Fix warnings. --- lnet/selftest/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnet/selftest/console.c b/lnet/selftest/console.c index 943f332..0b19e72 100644 --- a/lnet/selftest/console.c +++ b/lnet/selftest/console.c @@ -1708,8 +1708,8 @@ lstcon_session_new(char *name, int key, if (rc != 0) { lstcon_batch_t *bat; - lstcon_batch_find(LST_DEFAULT_BATCH, &bat); - lstcon_batch_destroy(bat); + if (lstcon_batch_find(LST_DEFAULT_BATCH, &bat) == 0) + lstcon_batch_destroy(bat); return rc; } -- 1.8.3.1