Norm,
Have you tried the following?
undef myarray
This command can also be used to release the memory that was occupied by an array when the variable holding the array is set to undef.
When you exit a program all memory should be released. I haven't notice this problem and I create some very large strings and arrays. Have you tried to create a large array without populating it with the MySQL interface and see if the memory is released? What OS are you running under?
I'll try to reproduce this on my end. If you can send me the relevant code, that would also help Peter and I track this down. I'm surprised no one else has mentioned this before. :?:
John