/[lwip]/lwip/src/api/api_lib.c
ViewVC logotype

Diff of /lwip/src/api/api_lib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by likewise, Sat Feb 7 00:30:03 2004 UTC revision 1.20 by kieranm, Mon Sep 20 16:58:01 2004 UTC
# Line 280  netconn_delete(struct netconn *conn) Line 280  netconn_delete(struct netconn *conn)
280    if (conn->recvmbox != SYS_MBOX_NULL) {    if (conn->recvmbox != SYS_MBOX_NULL) {
281      while (sys_arch_mbox_fetch(conn->recvmbox, &mem, 1) != SYS_ARCH_TIMEOUT) {      while (sys_arch_mbox_fetch(conn->recvmbox, &mem, 1) != SYS_ARCH_TIMEOUT) {
282        if (conn->type == NETCONN_TCP) {        if (conn->type == NETCONN_TCP) {
283    pbuf_free((struct pbuf *)mem);          if(mem != NULL)
284              pbuf_free((struct pbuf *)mem);
285        } else {        } else {
286    netbuf_delete((struct netbuf *)mem);          netbuf_delete((struct netbuf *)mem);
287        }        }
288      }      }
289      sys_mbox_free(conn->recvmbox);      sys_mbox_free(conn->recvmbox);

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26