Skip to content

Commit

Permalink
OpenOCD memory leak in hwthread_update_threads()
Browse files Browse the repository at this point in the history
Update `os_free()` from `rtos/rtos.c:96` to fix memory leaks

Change-Id: Id7b4c775291b735a0b4423151c2930afce6bf0bd
Signed-off-by: Kirill Radkin <kirill.radkin@syntacore.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7934
Reviewed-by: Tim Newsome <tim@sifive.com>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
  • Loading branch information
kr-sc authored and tom-van committed Oct 27, 2023
1 parent e5d26f1 commit b388f48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rtos/rtos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b388f48

Please sign in to comment.