diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-04-11 22:01:42 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-04-11 22:01:42 -0700 |
| commit | 5c0f6268d00edde5d9fb4728e3efd92499159d1b (patch) | |
| tree | f5764a85dc6113ffdd5c5e2ca1f18c1b6d1f17b4 /src/protocol | |
| parent | d08cef5df2951d489236ea65b65a7db4a3489756 (diff) | |
| download | nng-5c0f6268d00edde5d9fb4728e3efd92499159d1b.tar.gz nng-5c0f6268d00edde5d9fb4728e3efd92499159d1b.tar.bz2 nng-5c0f6268d00edde5d9fb4728e3efd92499159d1b.zip | |
fixes #915 Memory Leak in pub
Diffstat (limited to 'src/protocol')
| -rw-r--r-- | src/protocol/pubsub0/pub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocol/pubsub0/pub.c b/src/protocol/pubsub0/pub.c index bec0763f..c4a164e7 100644 --- a/src/protocol/pubsub0/pub.c +++ b/src/protocol/pubsub0/pub.c @@ -285,6 +285,9 @@ pub0_sock_send(void *arg, nni_aio *aio) } } nni_mtx_unlock(&sock->mtx); + if (msg != NULL) { + nng_msg_free(msg); + } nni_aio_finish(aio, 0, len); } |
