bdbcat / oesenc_pi

GNU General Public License v2.0
10 stars 17 forks source link

Memory leak (especially in X server) #103

Open wellenvogel opened 3 years ago

wellenvogel commented 3 years ago

When the oensec_pi plugin closes a chart it creates a memory leak by not destroying the member m_pCloneBM of oSENCChart. It seems that on the program side itself this leak is rather small but on the Xserver side it is 0.3MB (measured on an ubuntu bionic with Xvfb). So after long runs there is a chance that the Xserver starts to consume more and more memory - especially if the cache size is small and charts are frequently closed. This is especially a problem on systems with low memory (like the raspberry). Deleting the member in the destructor solves the problem. There still seem to be smaller leaks (factor 10 smaller) - but I did not investigate on them.

bdbcat commented 3 years ago

Corrected in source, not yet released to catalog