diff options
| author | Sunny Kumar <sunkumar@redhat.com> | 2018-08-14 18:59:47 +0530 | 
|---|---|---|
| committer | Amar Tumballi <amarts@redhat.com> | 2018-08-15 06:05:23 +0000 | 
| commit | 4d1ea415f5346b24c13810aab18a24256fb2b41a (patch) | |
| tree | d60cf1d3ce4edef9621086244519e80ab0b9fd66 | |
| parent | 767109f5cf2ebe5cecc4e93d990c43255ffe6a12 (diff) | |
mountbroker : fix coverity issue in glusterd-mountbroker.c
Fixes CID : 1124789
updates: bz#789278
Change-Id: I61c70f05e6377d7ddc8961556274714dd356a117
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-mountbroker.c | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-mountbroker.c b/xlators/mgmt/glusterd/src/glusterd-mountbroker.c index b7db3bdf059..8554db03173 100644 --- a/xlators/mgmt/glusterd/src/glusterd-mountbroker.c +++ b/xlators/mgmt/glusterd/src/glusterd-mountbroker.c @@ -738,7 +738,10 @@ glusterd_do_mount (char *label, dict_t *argdict, char **path, int *op_errno)                  *path = cookie;          } -        GF_FREE (mtptemp); +        if (mtptemp) +                GF_FREE (mtptemp); +        if (mntlink) +                GF_FREE (mntlink);          return ret;  }  | 
