summaryrefslogtreecommitdiffstats
path: root/cli/src/cli.c
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-10-30 13:09:08 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-10-30 21:23:22 -0700
commitde001e8659d78dd16ba8515228c70fd2986e56df (patch)
tree0a8f3d75ed1cb273cc4ec50ec5463b0574413b3f /cli/src/cli.c
parent961d5fb6025f4901d63be8cfc8062bd8e2093021 (diff)
cli: Fix memory leaks
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1198 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1198
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r--cli/src/cli.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index 5e389b6c67f..97be0c5e1f6 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -319,12 +319,11 @@ cli_submit_request (void *req, call_frame_t *frame,
pthread_mutex_unlock (&global_rpc->conn.lock);
}
- if (start_ping)
- //client_start_ping ((void *) this);
-
ret = 0;
out:
+ if (new_iobref)
+ iobref_unref (iobref);
return ret;
}