protocol/server: memory leak fixes.
Change-Id: I203832d9d52373f068f90e30dc7672329d65bbea BUG: 803675 Signed-off-by: Raghavendra G <raghavendra@gluster.com> Reviewed-on: http://review.gluster.com/2954 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
This commit is contained in:
parent
ca15758018
commit
3823d7ee14
@ -733,6 +733,11 @@ fail:
|
||||
rsp.op_errno = op_errno;
|
||||
server_submit_reply (NULL, req, &rsp, NULL, 0, NULL,
|
||||
(xdrproc_t)xdr_gf_set_lk_ver_rsp);
|
||||
|
||||
if (args.uid != NULL) {
|
||||
free (args.uid);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -3919,6 +3919,10 @@ out:
|
||||
if (op_errno)
|
||||
req->rpc_err = GARBAGE_ARGS;
|
||||
|
||||
if (args.dict.dict_val != NULL) {
|
||||
free (args.dict.dict_val);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user