diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-01-03 13:04:44 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-01-03 13:04:44 -0800 |
| commit | 2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d (patch) | |
| tree | 0c9043030419dbe6ac54f709d7658330f2e1d529 /src/transport/ipc | |
| parent | 303f84fbbfc4ee04b9f62e12bb2c1106834a2371 (diff) | |
| download | nng-2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d.tar.gz nng-2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d.tar.bz2 nng-2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d.zip | |
Fix leaks on send.
I'm pretty sure I need to go back and review the handling of
send messages for websocket too. We still have a receive leak
in websocket and leaks caused by the new URL parsing code which
needs to be refactored.
Diffstat (limited to 'src/transport/ipc')
| -rw-r--r-- | src/transport/ipc/ipc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/ipc/ipc.c b/src/transport/ipc/ipc.c index 32ff1c0e..84292bb8 100644 --- a/src/transport/ipc/ipc.c +++ b/src/transport/ipc/ipc.c @@ -1,6 +1,6 @@ // -// Copyright 2017 Garrett D'Amore <garrett@damore.org> -// Copyright 2017 Capitar IT Group BV <info@capitar.com> +// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -252,6 +252,7 @@ nni_ipc_pipe_send_cb(void *arg) msg = nni_aio_get_msg(aio); n = nni_msg_len(msg); nni_aio_set_msg(aio, NULL); + nni_msg_free(msg); nni_aio_finish(aio, 0, n); } |
