summaryrefslogtreecommitdiffstats
path: root/sys/net/flowtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/flowtable.c')
-rw-r--r--sys/net/flowtable.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/flowtable.c b/sys/net/flowtable.c
index 0e4beb4..514c17a 100644
--- a/sys/net/flowtable.c
+++ b/sys/net/flowtable.c
@@ -1389,8 +1389,10 @@ fle_free(struct flentry *fle, struct flowtable *ft)
rt = __DEVOLATILE(struct rtentry *, fle->f_rt);
lle = __DEVOLATILE(struct llentry *, fle->f_lle);
- RTFREE(rt);
- LLE_FREE(lle);
+ if (rt != NULL)
+ RTFREE(rt);
+ if (lle != NULL)
+ LLE_FREE(lle);
flow_free(fle, ft);
}
OpenPOWER on IntegriCloud