From 382b4d03ab029a94f29231e19db9996596985bb7 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 29 Oct 2009 22:53:28 +0000 Subject: protocol/server: fix leak of xattrop dictionary Signed-off-by: Anand V. Avati BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315 --- xlators/protocol/server/src/server-protocol.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit