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/43368 github. com/Juniper/ contrail- controller/ commit/ a90c233501709dd 0a3a31117b05c1c dd88771933
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R4.0
commit a90c233501709dd 0a3a31117b05c1c dd88771933
Author: zcui <email address hidden>
Date: Tue May 29 16:22:51 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: I0f43c9aec204f9 83333e10fb4c012 2f37becb4af
Closes-bug: 1770123