open-hpi / openhpi

Other
6 stars 10 forks source link

Small memory leak during OA switchover. #1971

Closed mohandev2 closed 6 years ago

mohandev2 commented 6 years ago

When there is a OA switchover, memory leak of approximately 0.5-0,6MB is seen.

Steps to reproduce: 1) Run openhpid. 2) After openhpi discovery, connect to OA through ssh OR GUI. 3) In OA command line, do "force takeover" OR do OA switchover through GUI. 4) Then after switchover, memory leak is seen.

Reported by: ShyamalaH

Original Ticket: openhpi/bugs/1971

mohandev2 commented 6 years ago

Original comment by: mohandev2

HemanthBeecherla commented 6 years ago

After testing the oa_soap plugin thoroughly, most of the memory leak is happening in libxml2 calls. For verification purpose I am attaching sample program that shows the memory leak in libxml2 calls. Also provided the steps to compile the sample program.

This Bug can be closed now. xml_sample_program.tar.gz