From 8b56178a7928bc7d30f408096303eaff3fe6d823 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 22 May 2009 03:33:41 +0000 Subject: 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 --- transport/socket/src/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'transport') diff --git a/transport/socket/src/socket.c b/transport/socket/src/socket.c index a1e088b944..5ff30fe5ad 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)); -- cgit