diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2018-09-03 11:35:31 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-09-04 07:44:33 +0000 |
commit | 53e6e621408bca1e053caa2f93af84788edb2dfa (patch) | |
tree | ab20c9f64492309a4bf174d16a0b000df109f660 /xlators | |
parent | 8b913eb752be422a362329d02dfb5c76754ad151 (diff) |
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>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/performance/io-cache/src/page.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |