So cimslp exposes this problem nicely (esp. when run with a small slpRefreshInterval) but its memory handling is actually fine.
The real problem is cimslp using the "SfcbLocal" connection type. Changing this to "XML" fixes the leak.
(Adapted summary accordingly)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The leak is in cimslpCMPI.c:getSLPData()
This repeatedly calls
ci = myGetInstances(...)
with a later
freeInstArr(ci);
commenting out all other code, just leaving a single myGetInstances() with the corresponding freeInstArr() in _still_ leaks memory
So cimslp exposes this problem nicely (esp. when run with a small slpRefreshInterval) but its memory handling is actually fine.
The real problem is cimslp using the "SfcbLocal" connection type. Changing this to "XML" fixes the leak.
(Adapted summary accordingly)
Correction to the last comment. "SfcbLocal" must be replaced by "http".
This *dramatically* reduces the leak but it does not plug it completely :-/
Reduce-memory-leak-in-slp-operation
SLP was restructured in 1.3.8