NetXMS Support Forum

English Support => General Support => Topic started by: Yuksel on September 16, 2013, 03:30:20 PM

Title: Memory Leaks in NXCGetDCIData or NXCGetDCIDataEx
Post by: Yuksel on September 16, 2013, 03:30:20 PM
Hi,

I am using NETXMS 1.2.8. Everytime I show a graph for a DCI list item using NXCGetDCIDataEx or NXCGetDCIData I had memory leaks.

Even I use NXCDestroyDCIData(dciData) and safe_free(thresholds) I got result below.

NXUILIB.DLL Terminating!
Detected memory leaks!
Dumping objects ->
{444710} normal block at 0x09290BC8, 12 bytes long.
Data: <6     n7    > 36 00 00 00 00 0A 6E 37 00 00 00 00
{444709} normal block at 0x09290B80, 12 bytes long.
Data: <      n7    > 1C 00 00 00 00 0A 6E 37 00 00 00 00
{444708} normal block at 0x09290668, 8 bytes long.
Data: <  )   ) > 80 0B 29 09 C8 0B 29 09
{444707} normal block at 0x09290618, 20 bytes long.
Data: <            h ) > 1D 00 00 00 1F 01 00 00 02 00 00 00 68 06 29 09

It was the same for NETXMS version 1.2.7 as well.

Do you have any issue like this?

Regards,
Yuksel.
Title: Re: Memory Leaks in NXCGetDCIData or NXCGetDCIDataEx
Post by: Victor Kirhenshtein on September 16, 2013, 08:06:35 PM
Hi!

You are right, there was memory leak in NXCGetDCIDataEx. I've fixed it (SVN rev. 7673). This fix will be part of 1.2.9 release.

Best regards,
Victor