rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ding...@apache.org
Subject [rocketmq-client-cpp] branch master updated: fix(producer) crash in DestroyProducer shutdown.
Date Mon, 06 Jan 2020 09:26:01 GMT
This is an automated email from the ASF dual-hosted git repository.

dinglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-cpp.git


The following commit(s) were added to refs/heads/master by this push:
     new ad8fdb1  fix(producer) crash in DestroyProducer shutdown.
ad8fdb1 is described below

commit ad8fdb1358184f7be2c2504414cae851a568bb34
Author: wei56 <pxwei@qq.com>
AuthorDate: Mon Jan 6 17:25:52 2020 +0800

    fix(producer) crash in DestroyProducer shutdown.
    
    fix(producer) crash in DestroyProducer shutdown.
---
 src/extern/CProducer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/extern/CProducer.cpp b/src/extern/CProducer.cpp
index c95055c..397d772 100644
--- a/src/extern/CProducer.cpp
+++ b/src/extern/CProducer.cpp
@@ -270,7 +270,7 @@ int DestroyProducer(CProducer* pProducer) {
       defaultMQProducer->innerProducer = NULL;
     }
   }
-  delete reinterpret_cast<DefaultMQProducer*>(pProducer);
+  delete reinterpret_cast<DefaultProducer*>(pProducer);
   return OK;
 }
 int StartProducer(CProducer* producer) {


Mime
View raw message