From de001e8659d78dd16ba8515228c70fd2986e56df Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sat, 30 Oct 2010 13:09:08 +0000 Subject: cli: Fix memory leaks Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 1198 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1198 --- cli/src/cli.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/src/cli.c') diff --git a/cli/src/cli.c b/cli/src/cli.c index 5e389b6c6..97be0c5e1 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; } -- cgit