mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331844
|
@ -523,6 +523,7 @@ flushroutes_fib(int fib)
|
|||
printf("done\n");
|
||||
}
|
||||
}
|
||||
free(buf);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
@ -1439,6 +1440,7 @@ interfaces(void)
|
|||
rtm = (struct rt_msghdr *)(void *)next;
|
||||
print_rtmsg(rtm, rtm->rtm_msglen);
|
||||
}
|
||||
free(buf);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue