summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorsurabhi <sbhaloth@redhat.com>2014-01-21 14:55:29 +0530
committerVijay Bellur <vbellur@redhat.com>2014-01-22 06:10:55 -0800
commit57edad947b4c43d7c8f05bac45c8e63c788f43ca (patch)
tree624c3722b7e764f53440e4fb76a2d28a6c890133 /glusterfsd
parentd0cd37817c45c1f375a8230533cc66821bfe9b6e (diff)
core:Fixing NULL dereference issue.
1.Checking of frame before calling STACK_DESTROY (frame->root) Signed-off-by: surabhi <sbhaloth@redhat.com> Change-Id: I21d27a8b4e556c00cd123afe8512e010a1a1f80d BUG: 789278 Signed-off-by: surabhi <sbhaloth@redhat.com> Reviewed-on: http://review.gluster.org/6749 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index de2829d..69c049d 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -1572,7 +1572,9 @@ glusterfs_rebalance_event_notify (dict_t *dict)
GF_FREE (req.dict.dict_val);
- STACK_DESTROY (frame->root);
+ if (frame) {
+ STACK_DESTROY (frame->root);
+ }
return ret;
}