diff options
-rw-r--r-- | xlators/protocol/server/src/server-handshake.c | 5 | ||||
-rw-r--r-- | xlators/protocol/server/src/server3_1-fops.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server-handshake.c b/xlators/protocol/server/src/server-handshake.c index ba80185fe..1698a3f5c 100644 --- a/xlators/protocol/server/src/server-handshake.c +++ b/xlators/protocol/server/src/server-handshake.c @@ -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; } diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c index 3cf7eb2f8..d44ee1cf7 100644 --- a/xlators/protocol/server/src/server3_1-fops.c +++ b/xlators/protocol/server/src/server3_1-fops.c @@ -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; } |