aboutsummaryrefslogtreecommitdiffstats
path: root/src/hnbgw.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-09-07 22:41:26 +0200
committerHarald Welte <laforge@gnumonks.org>2015-09-07 22:41:26 +0200
commit9e270b483480e3930867314ff36d5a150794b10b (patch)
treeff2ce9c16afd2bc0b2b3e8a91858942714b3d859 /src/hnbgw.c
parent1c1c53ca11167ebd9524ad150f087b3645d95657 (diff)
hnbgw.c: Fix double-free in wait-queue transmit code
Diffstat (limited to 'src/hnbgw.c')
-rw-r--r--src/hnbgw.c3
1 files changed, 1 insertions, 2 deletions
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 @@ static int hnb_write_cb(struct osmo_fd *fd, struct msgb *msg)
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;
}