summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-08-16 02:10:15 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-16 01:48:48 -0700
commita2f198db704a52e6e805a5637dfa399513de02c2 (patch)
tree751c18263e8413ea6d80d228c2a9448e2a68d3e9 /xlators/mgmt
parent7ebf4817f3535c8b5e78a0edb3b40ed2843a305f (diff)
glusterd: Fix for a crash during restart
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1369 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1369
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index ce9d9d8a608..16d3f59099d 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -844,6 +844,8 @@ glusterd_store_retrieve_bricks (glusterd_volinfo_t *volinfo)
GF_FREE (key);
GF_FREE (value);
+ key = NULL;
+ value = NULL;
ret = glusterd_store_iter_get_next (iter, &key, &value);
}
@@ -921,6 +923,8 @@ glusterd_store_retrieve_volume (char *volname)
GF_FREE (key);
GF_FREE (value);
+ key = NULL;
+ value = NULL;
ret = glusterd_store_iter_get_next (iter, &key, &value);
}
@@ -1228,6 +1232,8 @@ glusterd_store_retrieve_peers (xlator_t *this)
GF_FREE (key);
GF_FREE (value);
+ key = NULL;
+ value = NULL;
ret = glusterd_store_iter_get_next (iter, &key, &value);
}