diff options
author | Amar Tumballi <amarts@redhat.com> | 2012-06-05 14:15:54 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-06-05 10:45:10 -0700 |
commit | 6eee473eba94697953e8b3e1b04fe5ef1de5f474 (patch) | |
tree | d435b4f4186690907c39a28257f3707ea86bbeb1 /cli/src/cli-rpc-ops.c | |
parent | 04fd2972fe8a9b9568ac781ba7677f13fdce0f57 (diff) |
core: coverity fixes (mostly resource leak fixes)
currently working on obvious resource leak reports in coverity
Change-Id: I261f4c578987b16da399ab5a504ad0fda0b176b1
Signed-off-by: Amar Tumballi <amarts@redhat.com>
BUG: 789278
Reviewed-on: http://review.gluster.com/3265
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
-rw-r--r-- | cli/src/cli-rpc-ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 7cc85e483..091c74f54 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -2780,6 +2780,7 @@ done: if (local) { local->dict = dict_ref (req_dict); frame->local = local; + local = NULL; } ret = dict_allocate_and_serialize (req_dict, @@ -2798,6 +2799,9 @@ done: (xdrproc_t) xdr_gf_cli_req); out: + if (local) + cli_local_wipe (local); + gf_log ("cli", GF_LOG_DEBUG, "Returning %d", ret); return ret; |