[DTrace-devel] [PATCH 65/66] Fix memory leak of dt_tstrings

Kris Van Hees kris.van.hees at oracle.com
Sat Aug 20 03:28:07 UTC 2022


Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 libdtrace/dt_open.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libdtrace/dt_open.c b/libdtrace/dt_open.c
index 581172e2..1bff6e3c 100644
--- a/libdtrace/dt_open.c
+++ b/libdtrace/dt_open.c
@@ -1229,6 +1229,7 @@ dtrace_close(dtrace_hdl_t *dtp)
 	if (dtp->dt_bpfsyms != NULL)
 		dt_idhash_destroy(dtp->dt_bpfsyms);
 
+	dt_free(dtp, dtp->dt_tstrings);
 
 	dt_htab_destroy(dtp, dtp->dt_kernsyms);
 	dtp->dt_kernsyms = NULL;
-- 
2.34.1




More information about the DTrace-devel mailing list