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>
This commit is contained in:
Sunny Kumar 2018-08-14 18:59:47 +05:30 committed by Amar Tumballi
parent 767109f5cf
commit 4d1ea415f5

View File

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