Hi,
one of our projects recently exposed severe memory leakage when using
ROMIO to write a complex derived datatype (a struct made of other
structs) to a file. From our code we distilled the attached short
program to reproduce the leak.
After some Valgrind sessions, it appears as if the memcpy in
Andreas,
Thanks for the patch and the example. You're right, we should avoid
copying the ref count of the old datatype. The new datatype need a
ref count set to one when it get out of the dup function. I will
commit the patch to the trunk.
Thanks,
george.
On Nov 12, 2006, at 9:00 P