diff options
author | Mohammed Junaid <junaid@redhat.com> | 2012-03-01 22:34:59 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-03-01 10:02:42 -0800 |
commit | 0d62b3e4cd9de73b0cb7e54f904eefe27581cf4d (patch) | |
tree | ad7b86ce35797e25f5670d448c30b6bf4ae4e095 | |
parent | 316e694d53f20a76ee36654a9a865a493800dc3c (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.c | 2 |
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 c8064ac83dd..34222f845a1 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: |