summaryrefslogtreecommitdiffstats
path: root/transport
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-05-22 03:33:41 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-05-22 03:02:39 -0700
commit8b56178a7928bc7d30f408096303eaff3fe6d823 (patch)
treef90f87656dcecac9804604132ff9fae74cf04baf /transport
parentabb075def55110f606ff43e64933afee61dea261 (diff)
fix crash in __socket_reset. Previously iobuf_p was an allocated pointer, but since introduction of IObuf it is no more. Now iobuf has to be unref'ed instead.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'transport')
-rw-r--r--transport/socket/src/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transport/socket/src/socket.c b/transport/socket/src/socket.c
index a1e088b9444..5ff30fe5adc 100644
--- a/transport/socket/src/socket.c
+++ b/transport/socket/src/socket.c
@@ -259,8 +259,8 @@ __socket_reset (transport_t *this)
if (priv->incoming.hdr_p)
free (priv->incoming.hdr_p);
- if (priv->incoming.buf_p)
- free (priv->incoming.buf_p);
+ if (priv->incoming.iobuf)
+ iobuf_unref (priv->incoming.iobuf);
memset (&priv->incoming, 0, sizeof (priv->incoming));