This is an automated email from the ASF dual-hosted git repository.
masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new e27bcec Fix memleak in ProcessManager::stop()
e27bcec is described below
commit e27bcec1ba191668000b7f8d0cdaacc9c0e3c0da
Author: Oknet Xu <[email protected]>
AuthorDate: Wed Mar 13 21:46:17 2019 +0800
Fix memleak in ProcessManager::stop()
---
mgmt/ProcessManager.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mgmt/ProcessManager.cc b/mgmt/ProcessManager.cc
index e8e6866..35d2b3c 100644
--- a/mgmt/ProcessManager.cc
+++ b/mgmt/ProcessManager.cc
@@ -126,7 +126,9 @@ ProcessManager::stop()
ats_free(sig);
}
- ats_free(mgmt_signal_queue);
+ LLQ *tmp_queue = mgmt_signal_queue;
+ mgmt_signal_queue = nullptr;
+ delete_queue(tmp_queue);
}
/*