in reply to Re: Where are those memory leaks?
in thread Where are those memory leaks?

fetchrow_array called in scalar context returns either the first or the last element of the array depending on the DBD. In this case, since it is a SELECT COUNT, there is only one element so it's both the first and the last.