Changeset 3391 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jul 3, 2007 2:10:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/tcp_input.c
r1076 r3391 241 241 int ret; 242 242 /* int ts_present = 0; */ 243 int mbuf_freed = 0; 243 244 244 245 DEBUG_CALL("tcp_input"); … … 1347 1348 len = so->so_rcv.sb_datalen - (tp->rcv_adv - tp->rcv_nxt); 1348 1349 } else { 1349 m_free(pData, m);1350 mbuf_freed = 1; /* The mbuf must be freed, but only when its content is not needed anymore. */ 1350 1351 tiflags &= ~TH_FIN; 1351 1352 } … … 1434 1435 } 1435 1436 1437 if (mbuf_freed) { 1438 m_free(pData, m); 1439 } 1436 1440 /* 1437 1441 * Return any desired output.
Note:
See TracChangeset
for help on using the changeset viewer.