|
From: openocd-gerrit <ope...@us...> - 2023-10-27 11:41: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 b388f4805c3ce6e0b7ce7e5995c9305529db8e46 (commit)
from e5d26f1546fbe3cba310a3828c75be9ab786be29 (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 b388f4805c3ce6e0b7ce7e5995c9305529db8e46
Author: Kirill Radkin <kir...@sy...>
Date: Mon Sep 25 13:10:20 2023 +0300
OpenOCD memory leak in `hwthread_update_threads()`
Update `os_free()` from `rtos/rtos.c:96` to fix memory leaks
Change-Id: Id7b4c775291b735a0b4423151c2930afce6bf0bd
Signed-off-by: Kirill Radkin <kir...@sy...>
Reviewed-on: https://review.openocd.org/c/openocd/+/7934
Reviewed-by: Tim Newsome <ti...@si...>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <bor...@gm...>
Reviewed-by: Tomas Vanek <va...@fb...>
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index 136d93bf6..0df1182c0 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -78,6 +78,7 @@ static void os_free(struct target *target)
return;
free(target->rtos->symbols);
+ rtos_free_threadlist(target->rtos);
free(target->rtos);
target->rtos = NULL;
}
-----------------------------------------------------------------------
Summary of changes:
src/rtos/rtos.c | 1 +
1 file changed, 1 insertion(+)
hooks/post-receive
--
Main OpenOCD repository
|