Return-Path: From: Sven Eckelmann Date: Tue, 10 Sep 2013 23:11:59 +0200 Message-Id: <1378847522-13776-9-git-send-email-sven@narfation.org> In-Reply-To: <1378847522-13776-1-git-send-email-sven@narfation.org> References: <1378847522-13776-1-git-send-email-sven@narfation.org> Subject: [B.A.T.M.A.N.] [PATCH 08/11] batctl: Fix error handling jump in interface when batadv not loaded Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org Cc: Sven Eckelmann The jump to the path_buffer free must be taken when batman-adv was not loaded because it has to free path_buff which was allocated earlier Signed-off-by: Sven Eckelmann --- sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys.c b/sys.c index 2fcd67b..7539f76 100644 --- a/sys.c +++ b/sys.c @@ -230,7 +230,7 @@ int interface(char *mesh_iface, int argc, char **argv) if (!file_exists(module_ver_path)) { fprintf(stderr, "Error - batman-adv module has not been loaded\n"); - goto err; + goto err_buff; } fprintf(stderr, "Error - interface type not supported by batman-adv: %s\n", argv[i]); -- 1.8.4.rc3