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 <sunkumar@redhat.com>
This commit is contained in:
Sunny Kumar 2018-09-03 11:35:31 +05:30 committed by Amar Tumballi
parent 8b913eb752
commit 53e6e62140

View File

@ -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;
}