summaryrefslogtreecommitdiffstats
path: root/cli/src/cli.c
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2010-08-16 02:35:40 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-16 01:49:00 -0700
commit659e2d938f4da023411114c13a14337c21083411 (patch)
tree0e2c84115c9fadadde1b8e594a52dddc3904562e /cli/src/cli.c
parent32041afec462237c44a557ccdc4a32c6e33bad96 (diff)
cli: Cleanup replace brick operations.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1304 (Free state info for replace brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1304
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r--cli/src/cli.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index ec24e96ed..26fa772df 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -492,6 +492,16 @@ cli_local_get ()
return local;
}
+void
+cli_local_wipe (cli_local_t *local)
+{
+ if (local) {
+ GF_FREE (local);
+ }
+
+ return;
+}
+
struct cli_state *global_state;
int