From: OpenOCD-Gerrit <ope...@us...> - 2021-11-13 10:51:44
|
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 e9a569aa18230766ae0bb6dd1a6dc843eb8c087b (commit) from ac1a632ba13efa77393cecf29bd29410db60cada (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 e9a569aa18230766ae0bb6dd1a6dc843eb8c087b Author: Antonio Borneo <bor...@gm...> Date: Thu Oct 7 18:13:21 2021 +0200 jtag/adapter: fix memory leak on usb location At exit, free the memory allocated to hold the USB location. Change-Id: I050701f4dc8be14fd40e8add9d0b047461fa0d1c Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/6646 Tested-by: jenkins Reviewed-by: Tarek BOCHKATI <tar...@gm...> diff --git a/src/jtag/adapter.c b/src/jtag/adapter.c index a5a6222a9..c30019c17 100644 --- a/src/jtag/adapter.c +++ b/src/jtag/adapter.c @@ -120,6 +120,8 @@ int adapter_quit(void) LOG_ERROR("failed: %d", result); } + free(adapter_config.usb_location); + struct jtag_tap *t = jtag_all_taps(); while (t) { struct jtag_tap *n = t->next_tap; ----------------------------------------------------------------------- Summary of changes: src/jtag/adapter.c | 2 ++ 1 file changed, 2 insertions(+) hooks/post-receive -- Main OpenOCD repository |