After inlining of raw_detach we know the sizes for free; pointed out by mpi.
OK? diff --git pfkeyv2.c pfkeyv2.c index d0ae384aaa2..dcb66c06fe5 100644 --- pfkeyv2.c +++ pfkeyv2.c @@ -284,7 +284,7 @@ pfkeyv2_detach(struct socket *so) so->so_pcb = NULL; sofree(so); - free(&kp->rcb, M_PCB, 0); + free(&kp->rcb, M_PCB, sizeof(struct keycb)); return (0); } diff --git rtsock.c rtsock.c index 74c42fe318f..7c2ffd63006 100644 --- rtsock.c +++ rtsock.c @@ -286,7 +286,7 @@ route_detach(struct socket *so) so->so_pcb = NULL; sofree(so); - free(&rop->rcb, M_PCB, 0); + free(&rop->rcb, M_PCB, sizeof(struct routecb)); return (0); } -- I'm not entirely sure you are real.