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:
Raghavendra G 2012-03-16 09:11:58 +05:30 committed by Anand Avati
parent ca15758018
commit 3823d7ee14
2 changed files with 9 additions and 0 deletions

View File

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

View File

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