summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 0ce38dd340..d8be32e2bd 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -575,6 +575,8 @@ void thread_master_free(struct thread_master *m)
hash_free(m->cpu_record);
m->cpu_record = NULL;
+ if (m->name)
+ XFREE(MTYPE_THREAD_MASTER, m->name);
XFREE(MTYPE_THREAD_MASTER, m->handler.pfds);
XFREE(MTYPE_THREAD_MASTER, m->handler.copy);
XFREE(MTYPE_THREAD_MASTER, m);