CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/05/08 19:47:12

Modified files:
        sys/net        : if_tun.c 

Log message:
avoid leaking memory when mbuf chain allocations fail in tun_dev_write()

the mbufs built by tun_dev_write used to be limited to a single
mbuf and cluster, but has grown in complexity now that it supports
tun_hdr and tso, which required building mbuf chains. some of the
error handling when allocating mbuf bits wasnt adapted to free the
preceding chain when later allocaitons failed, resulting in a memory
leak.

reported by frank denis

Reply via email to