This is an automated email from the ASF dual-hosted git repository.

bcall 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 82e1497  Fix #5093: new/delete mismatch in test_IntrusivePtr.cc.
82e1497 is described below

commit 82e1497cc8bf8d8648d303881c60378369043134
Author: Alan M. Carroll <[email protected]>
AuthorDate: Mon Mar 4 15:45:11 2019 -0600

    Fix #5093: new/delete mismatch in test_IntrusivePtr.cc.
---
 src/tscore/unit_tests/test_IntrusivePtr.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tscore/unit_tests/test_IntrusivePtr.cc 
b/src/tscore/unit_tests/test_IntrusivePtr.cc
index c2fcf7e..ffacbc6 100644
--- a/src/tscore/unit_tests/test_IntrusivePtr.cc
+++ b/src/tscore/unit_tests/test_IntrusivePtr.cc
@@ -28,7 +28,7 @@
 
 struct Thing : public ts::IntrusivePtrCounter {
   Thing() { ++_count; }
-  ~Thing() { --_count; }
+  virtual ~Thing() { --_count; }
   std::string _name;
   static int _count; // instance count.
 };

Reply via email to