From 21d17e41fdff95c8ab014929e0c578d27ebf91da Mon Sep 17 00:00:00 2001 From: davidhaas Date: Tue, 1 Apr 2003 15:54:25 +0000 Subject: [PATCH] Fixed last change to pbuf_take. There were two calls to pbuf_free in a row. --- src/core/pbuf.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 7b7ac5ac..80cce7c3 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -857,13 +857,6 @@ pbuf_take(struct pbuf *f) pbuf_free(p); /* do not copy ref, since someone else might be using the old buffer */ 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); p = q; } else { /* deallocate chain */