diff options
author | paul <paul> | 2003-03-12 05:40:11 +0000 |
---|---|---|
committer | paul <paul> | 2003-03-12 05:40:11 +0000 |
commit | 84ad287beee7abb924d04195123b77ac549127ca (patch) | |
tree | 6551ba83e34dd9d38c8628c9488c735907470957 /lib/thread.c | |
parent | 70cd5a4cc369caeac94f3d521d36845dac0259eb (diff) | |
download | quagga-84ad287beee7abb924d04195123b77ac549127ca.tar.bz2 quagga-84ad287beee7abb924d04195123b77ac549127ca.tar.xz |
Fix memory leak in 'show thread cpu' command.
Diffstat (limited to 'lib/thread.c')
-rw-r--r-- | lib/thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/thread.c b/lib/thread.c index ff8f739d..2a5b8068 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -328,6 +328,7 @@ thread_list_free (struct thread_master *m, struct thread_list *list) 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 @@ strip_funcname (char *funcname) tmp = *e; *e = '\0'; - ret = XSTRDUP (MTYPE_TMP, b); + ret = XSTRDUP (MTYPE_STRVEC, b); *e = tmp; return ret; |