From 53e6e621408bca1e053caa2f93af84788edb2dfa Mon Sep 17 00:00:00 2001 From: Sunny Kumar Date: Mon, 3 Sep 2018 11:35:31 +0530 Subject: IO cache : fix coverity issue in page.c This patch fixes CID 1382439 and 1382412. Change-Id: I8696623c168ba76ae2ecac7c9582b4e50437bc53 updates: bz#789278 Signed-off-by: Sunny Kumar --- xlators/performance/io-cache/src/page.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators') diff --git a/xlators/performance/io-cache/src/page.c b/xlators/performance/io-cache/src/page.c index 33e728cfc8c..a6148e04746 100644 --- a/xlators/performance/io-cache/src/page.c +++ b/xlators/performance/io-cache/src/page.c @@ -896,10 +896,10 @@ unwind: vector = NULL; } - pthread_mutex_destroy (&local->local_lock); - if (local) + if (local) { + pthread_mutex_destroy (&local->local_lock); mem_put (local); - + } return; } -- cgit