Index: head/sbin/route/route.c =================================================================== --- head/sbin/route/route.c +++ head/sbin/route/route.c @@ -523,6 +523,7 @@ printf("done\n"); } } + free(buf); return (error); } @@ -1439,6 +1440,7 @@ rtm = (struct rt_msghdr *)(void *)next; print_rtmsg(rtm, rtm->rtm_msglen); } + free(buf); } static void