l2tpd_packet: add msgb_free() after sending the message
This commit is contained in:
parent
9b7111c3a2
commit
bc48fe2f98
|
@ -308,6 +308,8 @@ static int l2tp_msgb_tx(struct msgb *msg, int not_ack)
|
||||||
/* FIXME: put in the queue for reliable re-transmission */
|
/* FIXME: put in the queue for reliable re-transmission */
|
||||||
|
|
||||||
ret = sendto(l2i->l2tp_ofd.fd, msgb_data(msg), msgb_length(msg), 0, &l2c->remote.ss, sizeof(l2c->remote.ss));
|
ret = sendto(l2i->l2tp_ofd.fd, msgb_data(msg), msgb_length(msg), 0, &l2c->remote.ss, sizeof(l2c->remote.ss));
|
||||||
|
|
||||||
|
msgb_free(msg);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue