mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Free our input mbuf when the FCS is good (oops, memory leak).
This commit is contained in:
parent
b563bd02f0
commit
257b72c4fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32499
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pred.c,v 1.19 1997/12/21 12:11:08 brian Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -279,6 +279,7 @@ Pred1Input(u_short *proto, struct mbuf *bp)
|
||||
wp->cnt -= 2;
|
||||
*proto = (*proto << 8) | *pp++;
|
||||
}
|
||||
pfree(bp);
|
||||
return wp;
|
||||
} else {
|
||||
LogDumpBp(LogHDLC, "Bad FCS", wp);
|
||||
|
Loading…
Reference in New Issue
Block a user