diff options
| author | David Lamparter <equinox@diac24.net> | 2017-09-11 10:47:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-11 10:47:04 +0200 |
| commit | 29b32df94d11ab454eb72f11e89a58dbc98cc0d5 (patch) | |
| tree | d1fec5109b2c3954be3288c325300c9242a99894 /lib/thread.c | |
| parent | 5cf0c43de6b0950417fb1237f123c869fdef9af7 (diff) | |
| parent | 4e1000a1889f5d1afb83ec52ed20023806682640 (diff) | |
Merge pull request #1149 from qlyoung/fix-thread-master-name-leak
lib: free thread master name
Diffstat (limited to 'lib/thread.c')
| -rw-r--r-- | lib/thread.c | 2 |
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); |
