From 0d62b3e4cd9de73b0cb7e54f904eefe27581cf4d Mon Sep 17 00:00:00 2001 From: Mohammed Junaid Date: Thu, 1 Mar 2012 22:34:59 +0530 Subject: protocol/client: Calling GF_FREE on memory allocated via GF_CALLOC. This is a temporary fix. A clean fix would be to allocate memory using mem_get0 and free via mem_put. Change-Id: I6351ab22c2f05ba8fa4aaad67f375027df873807 BUG: 796656 Signed-off-by: Mohammed Junaid Reviewed-on: http://review.gluster.com/2852 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System --- xlators/protocol/client/src/client-handshake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index c8064ac83..34222f845 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -534,7 +534,7 @@ clnt_fd_lk_local_unref (xlator_t *this, clnt_fd_lk_local_t *local) if (ref == 0) { LOCK_DESTROY (&local->lock); - mem_put (local); + GF_FREE (local); } ref = 0; out: -- cgit