diff options
Diffstat (limited to 'src/core/endpt.c')
| -rw-r--r-- | src/core/endpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/endpt.c b/src/core/endpt.c index 5f695d41..554d9a36 100644 --- a/src/core/endpt.c +++ b/src/core/endpt.c @@ -107,7 +107,7 @@ nni_ep_connect(nni_ep *ep, nni_pipe **pp) } rv = ep->ep_ops.ep_connect(ep->ep_data, &pipe->p_tran_data); if (rv != 0) { - nni_pipe_close(pipe); + nni_pipe_destroy(pipe); return (rv); } ep->ep_pipe = pipe; @@ -243,7 +243,7 @@ nni_ep_accept(nni_ep *ep, nni_pipe **pp) } rv = ep->ep_ops.ep_accept(ep->ep_data, &pipe->p_tran_data); if (rv != 0) { - nni_pipe_close(pipe); + nni_pipe_destroy(pipe); return (rv); } *pp = pipe; |
