615 |
pbuf_unref(struct pbuf *f) |
pbuf_unref(struct pbuf *f) |
616 |
{ |
{ |
617 |
struct pbuf *p, *q; |
struct pbuf *p, *q; |
618 |
DEBUGF(PBUF_DEBUG, ("pbuf_unref: %p \n", f)); |
DEBUGF(PBUF_DEBUG, ("pbuf_unref: %p \n", (void*)f)); |
619 |
/* first pbuf is of type PBUF_REF? */ |
/* first pbuf is of type PBUF_REF? */ |
620 |
if (f->flags == PBUF_FLAG_REF) |
if (f->flags == PBUF_FLAG_REF) |
621 |
{ |
{ |
641 |
/* de-allocate PBUF_REF */ |
/* de-allocate PBUF_REF */ |
642 |
pbuf_free(f); |
pbuf_free(f); |
643 |
f = p; |
f = p; |
644 |
DEBUGF(PBUF_DEBUG, ("pbuf_unref: succesful %p \n", f)); |
DEBUGF(PBUF_DEBUG, ("pbuf_unref: succesful %p \n", (void *)f)); |
645 |
} |
} |
646 |
else |
else |
647 |
{ |
{ |