Fix memory leaks in route(8).
Submitted by: Tom Rix (trix_juniper.net) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D9676
This commit is contained in:
parent
756e49c303
commit
2d5832444f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user