02.10.2011, 07:24
I'm not sure but i think if you call that function and you have a result already stored, you will be causing a memory leak. That's probably causing the sql errors too (storing an empty result/trying to free empty result.).