diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-14 08:02:24 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-14 08:02:24 -0800 |
| commit | 0f8b89d497d7d8bb0386d816c2a18fe7084153b4 (patch) | |
| tree | 59b3bb8da93af03d8614307be9e060d7a29fa386 /src/transport | |
| parent | 810c67b859465c6d9c29954b14f2da9a7408de32 (diff) | |
| download | nng-0f8b89d497d7d8bb0386d816c2a18fe7084153b4.tar.gz nng-0f8b89d497d7d8bb0386d816c2a18fe7084153b4.tar.bz2 nng-0f8b89d497d7d8bb0386d816c2a18fe7084153b4.zip | |
Add ep_destroy implemenation to inproc.
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/inproc/inproc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/transport/inproc/inproc.c b/src/transport/inproc/inproc.c index e6e72b82..154f4117 100644 --- a/src/transport/inproc/inproc.c +++ b/src/transport/inproc/inproc.c @@ -217,7 +217,11 @@ inproc_ep_create(void **epp, const char *url, uint16_t proto) static void inproc_ep_destroy(void *arg) { - NNI_ARG_UNUSED(arg); + inproc_ep_t ep = arg; + if (!ep->closed) { + nni_panic("inproc_ep_destroy while not closed!"); + } + nni_free(ep, sizeof (*free)); } static void |
