|
From: openocd-gerrit <ope...@us...> - 2023-07-14 13:59:59
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via 965730dda9e1bbb18b9b954ef63ce9ed22fef73f (commit)
from 05da04acdaabad77cb0ec0caf1edafd516bb79fa (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 965730dda9e1bbb18b9b954ef63ce9ed22fef73f
Author: Daniel Anselmi <dan...@gm...>
Date: Mon Jul 10 21:03:10 2023 +0200
ipdbg: fix 'double free' in case of failed start
Change-Id: Id241d9dd0793095106fea000422617fbef462669
Signed-off-by: Daniel Anselmi <dan...@gm...>
Reviewed-on: https://review.openocd.org/c/openocd/+/7770
Reviewed-by: Antonio Borneo <bor...@gm...>
Tested-by: jenkins
diff --git a/src/server/ipdbg.c b/src/server/ipdbg.c
index 3fae0a98d..c1bdb2939 100644
--- a/src/server/ipdbg.c
+++ b/src/server/ipdbg.c
@@ -632,10 +632,8 @@ static int ipdbg_start(uint16_t port, struct jtag_tap *tap, uint32_t user_instru
}
} else {
int retval = ipdbg_create_hub(tap, user_instruction, data_register_length, virtual_ir, &hub);
- if (retval != ERROR_OK) {
- free(virtual_ir);
+ if (retval != ERROR_OK)
return retval;
- }
}
struct ipdbg_service *service = NULL;
-----------------------------------------------------------------------
Summary of changes:
src/server/ipdbg.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
hooks/post-receive
--
Main OpenOCD repository
|