On Thursday, April 18, 2013 03:13:16 Martin Hundebøll wrote:
On errors in batadv_mesh_init(), bat_counters will be freed in both batadv_mesh_free() and batadv_softif_init_late(). This patch fixes this by returning earlier from batadv_softif_init_late() in case of errors in batadv_mesh_init() and by setting bat_counters to NULL after freeing.
Signed-off-by: Martin Hundebøll martin@hundeboll.net
v2: Removed label as suggested by Antonio v3: Set bat_counters to NULL after freeing
main.c | 1 + soft-interface.c | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-)
Applied in revision b10ac71 with minor modifications.
Thanks, Marek