/[lwip]/lwip/src/core/pbuf.c
ViewVC logotype

Diff of /lwip/src/core/pbuf.c

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

revision 1.38 by likewise, Tue Apr 1 12:28:45 2003 UTC revision 1.39 by davidhaas, Tue Apr 1 15:54:25 2003 UTC
# Line 857  pbuf_take(struct pbuf *f) Line 857  pbuf_take(struct pbuf *f)
857          pbuf_free(p);          pbuf_free(p);
858          /* do not copy ref, since someone else might be using the old buffer */          /* do not copy ref, since someone else might be using the old buffer */
859          DEBUGF(PBUF_DEBUG, ("pbuf_take: replaced PBUF_REF %p with %p\n", (void *)p, (void *)q));          DEBUGF(PBUF_DEBUG, ("pbuf_take: replaced PBUF_REF %p with %p\n", (void *)p, (void *)q));
         /* p is no longer pointed to by prev or by our caller,  
          * as the caller must do p = pbuf_take(p); so free it  
          * from reference through linkage.  
          * note that we have set p->next to NULL already so that  
          * we will not free the rest of the chain by accident.  
          */  
         pbuf_free(p);  
860          p = q;          p = q;
861        } else {        } else {
862          /* deallocate chain */          /* deallocate chain */

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

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