hnbgw.c: Fix double-free in wait-queue transmit code

This commit is contained in:
Harald Welte 2015-09-07 22:41:26 +02:00
parent 1c1c53ca11
commit 9e270b4834
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}