summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-10-29 22:53:28 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-29 21:47:40 -0700
commit382b4d03ab029a94f29231e19db9996596985bb7 (patch)
tree6bcdbcdd8cb16a954c2d5cc54a0b289deb665138
parentd72c47cb04725c694921e7f3277f6230c26bc936 (diff)
protocol/server: fix leak of xattrop dictionary
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
-rw-r--r--xlators/protocol/server/src/server-protocol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c
index 628609500e1..3ebebdf195d 100644
--- a/xlators/protocol/server/src/server-protocol.c
+++ b/xlators/protocol/server/src/server-protocol.c
@@ -3342,6 +3342,7 @@ server_fxattrop (call_frame_t *frame, xlator_t *bound_xl,
}
dict->extra_free = req_dictbuf;
state->dict = dict;
+ dict = NULL;
}
resolve_and_resume (frame, server_fxattrop_resume);
@@ -3417,7 +3418,8 @@ server_xattrop (call_frame_t *frame, xlator_t *bound_xl,
goto fail;
}
dict->extra_free = req_dictbuf;
- state->dict = dict_ref (dict);
+ state->dict = dict;
+ dict = NULL;
}
resolve_and_resume (frame, server_xattrop_resume);