summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-10-05 01:38:15 +0530
committerAmar Tumballi <amarts@redhat.com>2018-10-08 09:25:12 +0000
commit82b7f8d77974bd2133705cce0d9188756dab3563 (patch)
tree1caae3ef3a3d78378f1e7004d96880b7a7a59dac
parent1d392e2970fb5b1d2f8cf2904e7b7e5d32a21882 (diff)
changetimerecorder : fix coverity issue
This patch fixes CID : 1124725 Issue : Resource leak updates: bz#789278 Change-Id: I2afe65875fa393fd2d2f90b6f7cf7f6782dabf89 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
-rw-r--r--xlators/features/changetimerecorder/src/changetimerecorder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/changetimerecorder/src/changetimerecorder.c b/xlators/features/changetimerecorder/src/changetimerecorder.c
index 9064c2c96dd..e25f6304def 100644
--- a/xlators/features/changetimerecorder/src/changetimerecorder.c
+++ b/xlators/features/changetimerecorder/src/changetimerecorder.c
@@ -2137,6 +2137,7 @@ init(xlator_t *this)
gf_msg(this->name, GF_LOG_ERROR, 0,
CTR_MSG_EXTRACT_CTR_XLATOR_OPTIONS_FAILED,
"Failed extracting ctr xlator options");
+ GF_FREE(priv);
return -1;
}