From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: Free local translation table on error in tt_init
Date: Fri, 4 May 2012 09:32:30 +0200 [thread overview]
Message-ID: <1336116752-585-1-git-send-email-sven@narfation.org> (raw)
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
translation-table.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/translation-table.c b/translation-table.c
index 88c62f1..c3b7773 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -1776,8 +1776,10 @@ int tt_init(struct bat_priv *bat_priv)
if (!tt_local_init(bat_priv))
return 0;
- if (!tt_global_init(bat_priv))
+ if (!tt_global_init(bat_priv)) {
+ tt_local_table_free(bat_priv);
return 0;
+ }
tt_start_timer(bat_priv);
--
1.7.10
next reply other threads:[~2012-05-04 7:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-04 7:32 Sven Eckelmann [this message]
2012-05-04 7:32 ` [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: Free bla hashes on error in bla_init Sven Eckelmann
2012-05-04 7:32 ` [B.A.T.M.A.N.] [PATCH 3/3] batman-adv: Return error codes instead of -1 on failures Sven Eckelmann
2012-05-05 11:27 ` [B.A.T.M.A.N.] [PATCHv2 1/2] batman-adv: Only set hash class after hash is initialized Sven Eckelmann
2012-05-05 11:27 ` [B.A.T.M.A.N.] [PATCHv2 2/2] batman-adv: Return error codes instead of -1 on failures Sven Eckelmann
2012-05-06 12:36 ` Marek Lindner
2012-05-05 14:49 ` [B.A.T.M.A.N.] [PATCHv2 1/2] batman-adv: Only set hash class after hash is initialized Antonio Quartulli
2012-05-05 15:04 ` Sven Eckelmann
2012-05-05 15:16 ` Antonio Quartulli
2012-05-06 12:24 ` Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1336116752-585-1-git-send-email-sven@narfation.org \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox