summaryrefslogtreecommitdiffstats
path: root/freebsd/sbin/route
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-20 14:25:06 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-20 15:35:59 +0100
commit00735284b8852c4770c5dbab1fe30baf5dfb0b46 (patch)
tree2d9500c9146ea9704a5b5212ab481d0702980f7d /freebsd/sbin/route
parentROUTE(8): Initialize file descriptor (diff)
downloadrtems-libbsd-00735284b8852c4770c5dbab1fe30baf5dfb0b46.tar.bz2
ROUTE(8): Fix memory leak
Diffstat (limited to 'freebsd/sbin/route')
-rw-r--r--freebsd/sbin/route/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/freebsd/sbin/route/route.c b/freebsd/sbin/route/route.c
index 147a5cd4..158445d8 100644
--- a/freebsd/sbin/route/route.c
+++ b/freebsd/sbin/route/route.c
@@ -411,7 +411,7 @@ fiboptlist_csv(struct rt_ctx *c, const char *arg, struct fibl_head_t *flh)
int fib, error;
if (strcmp("all", arg) == 0) {
- str = calloc(1, ALLSTRLEN);
+ str0 = str = calloc(1, ALLSTRLEN);
if (str == NULL) {
error = 1;
goto fiboptlist_csv_ret;