summaryrefslogtreecommitdiff
path: root/isisd/isis_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'isisd/isis_route.c')
-rw-r--r--isisd/isis_route.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/isisd/isis_route.c b/isisd/isis_route.c
index c99d9583..8ab470ce 100644
--- a/isisd/isis_route.c
+++ b/isisd/isis_route.c
@@ -438,7 +438,11 @@ isis_route_create (struct prefix *prefix, u_int32_t cost, u_int32_t depth,
route_node = route_node_get (area->route_table6[level - 1], prefix);
#endif /* HAVE_IPV6 */
else
- return NULL;
+ {
+ isis_route_info_delete (rinfo_new);
+ return NULL;
+ }
+
rinfo_old = route_node->info;
if (!rinfo_old)
{