commit | d5e86adf440c26ce1d5558eac3ebda50c506f079 | [log] [tgz] |
---|---|---|
author | paul <paul> | Wed Mar 12 05:40:11 2003 +0000 |
committer | paul <paul> | Wed Mar 12 05:40:11 2003 +0000 |
tree | c2cfbfc6991e98f5d9c1d74fd2f1a63b63949d9f | |
parent | 569c0f0188168b79044cc8fcba4639585a3be661 [diff] [blame] |
Fix memory leak in 'show thread cpu' command.
diff --git a/lib/thread.c b/lib/thread.c index ff8f739..2a5b806 100644 --- a/lib/thread.c +++ b/lib/thread.c
@@ -328,6 +328,7 @@ for (t = list->head; t; t = next) { next = t->next; + XFREE (MTYPE_STRVEC, t->funcname); XFREE (MTYPE_THREAD, t); list->count--; m->alloc--; @@ -399,7 +400,7 @@ tmp = *e; *e = '\0'; - ret = XSTRDUP (MTYPE_TMP, b); + ret = XSTRDUP (MTYPE_STRVEC, b); *e = tmp; return ret;