You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by GitBox <gi...@apache.org> on 2019/02/13 13:52:42 UTC

[GitHub] ottobackwards commented on a change in pull request #20: METRON-1910: bro plugin segfaults on src/KafkaWriter.cc:72

ottobackwards commented on a change in pull request #20: METRON-1910: bro plugin segfaults on src/KafkaWriter.cc:72
URL: https://github.com/apache/metron-bro-plugin-kafka/pull/20#discussion_r256403152
 
 

 ##########
 File path: src/KafkaWriter.cc
 ##########
 @@ -66,16 +66,7 @@ KafkaWriter::KafkaWriter(WriterFrontend* frontend):
 }
 
 KafkaWriter::~KafkaWriter()
-{
-
-    // Cleanup all the things
-    delete topic;
-    delete producer;
-    delete formatter;
-    delete conf;
-    delete topic_conf;
-
-}
+{}
 
 Review comment:
   I would go one step further and explicitly state in DoInit() that any resources created there should be cleaned up in DoFinish(),  since new things will get added there and that seems to be the 'rule'

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services