In keeping with pbuf->ref always having the count of the number of pointers

to the particular buffer (and the last rewrite of pbuf_free), changed most
pbuf_ref_chain() calls back to pbuf_ref(). I think this was causing some pbuf
leaks.
This commit is contained in:
davidhaas
2003-03-31 22:09:39 +00:00
parent 82a32be1d6
commit 09ca7a181b
2 changed files with 2 additions and 2 deletions

View File

@@ -719,7 +719,7 @@ tcp_seg_copy(struct tcp_seg *seg)
return NULL;
}
memcpy((char *)cseg, (const char *)seg, sizeof(struct tcp_seg));
pbuf_ref_chain(cseg->p);
pbuf_ref(cseg->p);
return cseg;
}
/*-----------------------------------------------------------------------------------*/