diff options
author | Martin Hundebøll <[email protected]> | 2013-04-17 21:13:16 +0200 |
---|---|---|
committer | Antonio Quartulli <[email protected]> | 2013-05-21 21:34:36 +0200 |
commit | f69ae770e74df420fbcf93aae81b30a5dcc73b7d (patch) | |
tree | 366080c1947e6650815e56c45f6ba53fe12a1cad /lib/test-string_helpers.c | |
parent | 3ccfc1b1d2fa78f8ece83646027982916fcc794b (diff) |
batman-adv: Avoid double freeing of bat_counters
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 <[email protected]>
Signed-off-by: Marek Lindner <[email protected]>
Signed-off-by: Antonio Quartulli <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions