summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammed Junaid <junaid@redhat.com>2012-03-01 22:34:59 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-01 10:02:42 -0800
commit0d62b3e4cd9de73b0cb7e54f904eefe27581cf4d (patch)
treead7b86ce35797e25f5670d448c30b6bf4ae4e095
parent316e694d53f20a76ee36654a9a865a493800dc3c (diff)
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 <junaid@redhat.com> Reviewed-on: http://review.gluster.com/2852 Reviewed-by: Amar Tumballi <amarts@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
-rw-r--r--xlators/protocol/client/src/client-handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c
index c8064ac..34222f8 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: