Demonstration of memory leak in Clarion CPXML procedure - PTSS#40365

In case you are curious:

CPXML appears to have a memory leak in the toDOM:AppendCol procedure. Below is a program that demonstrates this.

Calling GroupToDom with the default for DOMStyle appears to be fine (no memory leak):

Doc &= GroupToDOM(myGroup, 'root', 'label')

However, when you change the DOMStyle you very quickly see the memory usage spike:

Doc &= GroupToDOM(myGroup, 'root', 'label', DOMStyle:ADO_NET)

Example program:

Possible fix: