commit | 9e270b483480e3930867314ff36d5a150794b10b | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Mon Sep 07 22:41:26 2015 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Mon Sep 07 22:41:26 2015 +0200 |
tree | ff2ce9c16afd2bc0b2b3e8a91858942714b3d859 | |
parent | 1c1c53ca11167ebd9524ad150f087b3645d95657 [diff] |
hnbgw.c: Fix double-free in wait-queue transmit code
diff --git a/src/hnbgw.c b/src/hnbgw.c index 0839e69..0875524 100644 --- a/src/hnbgw.c +++ b/src/hnbgw.c
@@ -92,8 +92,7 @@ rc = sctp_send(fd->fd, msgb_data(msg), msgb_length(msg), &sinfo, 0); - msgb_free(msg); - + /* we don't need to msgb_free(), write_queue does this for us */ return rc; }