aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/route/route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index f90f5da40a31..79ec08972738 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -523,6 +523,7 @@ retry:
printf("done\n");
}
}
+ free(buf);
return (error);
}
@@ -1439,6 +1440,7 @@ retry2:
rtm = (struct rt_msghdr *)(void *)next;
print_rtmsg(rtm, rtm->rtm_msglen);
}
+ free(buf);
}
static void