diff options
Diffstat (limited to 'transport')
-rw-r--r-- | transport/socket/src/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transport/socket/src/socket.c b/transport/socket/src/socket.c index a1e088b9..5ff30fe5 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)); |