summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorBarak Sason Rofman <sason922@gmail.com>2020-07-05 19:53:30 +0300
committerMOHIT AGRAWAL <moagrawa@redhat.com>2020-07-06 13:50:36 +0000
commitadfebd8b25b93d256f9da0cb71efcb1e5d31ccda (patch)
tree0644b2b13e10b1463f5209543d8ae0c566e9686d /glusterfsd
parentf77f8c7c603069071d7a609adce3ed9bc1131c37 (diff)
glusterfsd - fixing a coverity issue
Fixing a resource leak issue Change-Id: I6c75de02887ddd59f7edfd65ebeca9d9629c6f1f CID: 1430129 updates: #1202 Signed-off-by: Barak Sason Rofman <bsasonro@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index 45431450185..793f27ab67f 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -205,6 +205,7 @@ glusterfs_serialize_reply(rpcsvc_request_t *req, void *arg,
retlen = xdr_serialize_generic(*outmsg, arg, xdrproc);
if (retlen == -1) {
gf_log(THIS->name, GF_LOG_ERROR, "Failed to encode message");
+ GF_FREE(iob);
goto ret;
}