Commit 3db319f
net: tcp2: Avoid double free message
If there is an error, the net_context.c:context_sendto() will
free the net_pkt, so we must not do it here.
This commit fixes this error message:
<err> net_pkt: *** ERROR *** pkt 0x20421908 is freed already
(context_sendto():1672)
Signed-off-by: Jukka Rissanen <[email protected]>1 parent 65a3b5a commit 3db319f
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | | - | |
1418 | 1417 | | |
1419 | 1418 | | |
1420 | 1419 | | |
| |||
1435 | 1434 | | |
1436 | 1435 | | |
1437 | 1436 | | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
1438 | 1442 | | |
1439 | 1443 | | |
1440 | 1444 | | |
| |||
0 commit comments