Do not delete instance when a new DODAG can not be created

This commit is contained in:
Laurent Deru 2015-01-16 16:44:19 +01:00
parent 0ba7f8df52
commit 49bfb1308d

View file

@ -507,7 +507,6 @@ rpl_alloc_dag(uint8_t instance_id, uip_ipaddr_t *dag_id)
} }
RPL_STAT(rpl_stats.mem_overflows++); RPL_STAT(rpl_stats.mem_overflows++);
rpl_free_instance(instance);
return NULL; return NULL;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/