summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2019-01-22 16:07:52 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2019-01-22 17:22:13 +0000
commit832f60d41d9a392e77e5b81e7a44a97003b7541f (patch)
treeb18490df54cea5ee3f9c9be50c8b58d6f25aa41c /glusterfsd
parentb6c417785e54620331ae35d6971fe8bef98b4619 (diff)
rpc: Fix double free
The value rsp.xdata.xdata_val was being freed twice. It was assigned to dict->extra_stdfree, dict_destroy would free it and also there was an explicit free. Getting rid of explicit free in this patch. Change-Id: Ia9c73454bec3970b33f154fa754398bf3b045645 fixes: bz#1668268 Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index f8934b184ed..6dec11b2bc2 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -2122,8 +2122,6 @@ out:
GF_FREE(frame->local);
frame->local = NULL;
STACK_DESTROY(frame->root);
- if (rsp.xdata.xdata_val)
- free(rsp.xdata.xdata_val);
free(rsp.spec);
if (dict)