commit | 4c8760b29913e50009a567f3c546fd4a3621359a | [log] [tgz] |
---|---|---|
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Sun Jan 31 18:12:38 2021 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Feb 01 15:23:33 2021 -0500 |
tree | 36f43e1dcac4d9e6a4ee4f3243e7682d1cb9fc7d | |
parent | de72faeb2c2c485fafe1077e8226c4a3d8469730 [diff] |
net: tcp2: Properly cleanup receive queue When pushing received data to the application, check that app was able to receive the data. If the application already closed the socket, then we must free the received net_pkt in order to avoid memory leak. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>