Fix memory leak in contrail-collector when kafka down
When kafka down, contrail-collecor can receive event. To detect if
kafka start again, contrail-collector need call librdkafka api to
detect metadata, the metada is a pointer, librdkafka will malloc
memory for metadata, and need caller to free it.
Reviewed: https:/ /review. opencontrail. org/43217 github. com/Juniper/ contrail- analytics/ commit/ 1b51d98048c59a0 77ead2f73ebc0d9 66f782a67b
Committed: http://
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0
commit 1b51d98048c59a0 77ead2f73ebc0d9 66f782a67b
Author: zcui <email address hidden>
Date: Tue May 15 10:10:46 2018 -0700
Fix memory leak in contrail-collector when kafka down
When kafka down, contrail-collecor can receive event. To detect if
kafka start again, contrail-collector need call librdkafka api to
detect metadata, the metada is a pointer, librdkafka will malloc
memory for metadata, and need caller to free it.
Change-Id: I84698de36f57ec e17ea3776b2ef99 b5154ddd2ff
Closes-bug: 1770123