summaryrefslogtreecommitdiffstats
path: root/xlators/storage/bd/src/bd-helper.c
diff options
context:
space:
mode:
authorBhumika Goyal <bgoyal@redhat.com>2018-08-16 21:32:21 +0530
committerAmar Tumballi <amarts@redhat.com>2018-08-18 05:49:41 +0000
commit41e768f65bf63c9da22f7125e1eeb77d9c775352 (patch)
treee5d00b8c24061bda7971f76cc778d0e268011d29 /xlators/storage/bd/src/bd-helper.c
parentd975305ab1c764582bf63bc6f526a2739e2b34eb (diff)
block xlator: fix some coverity issues
Fixes CID: 1128916, 1128917, 1128919, 1192875 Change-Id: I5276b7db4a9650e70c335e25b9b4609a887233c0 updates: bz#789278 Signed-off-by: Bhumika Goyal <bgoyal@redhat.com>
Diffstat (limited to 'xlators/storage/bd/src/bd-helper.c')
-rw-r--r--xlators/storage/bd/src/bd-helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/storage/bd/src/bd-helper.c b/xlators/storage/bd/src/bd-helper.c
index 419df784585..ee108b8eda6 100644
--- a/xlators/storage/bd/src/bd-helper.c
+++ b/xlators/storage/bd/src/bd-helper.c
@@ -342,6 +342,7 @@ bd_validate_bd_xattr (xlator_t *this, char *bd, char **type,
if (sys_stat (path, &stbuf)) {
gf_log (this->name, GF_LOG_WARNING,
"lstat failed for path %s", path);
+ GF_FREE (path);
return -1;
}