> ----- Original Message -----
> From: Tobias Rundström
> To: Sasha Pachev
> Cc: Tobias Rundstr?m ; internals@stripped
> Sent: Tuesday, September 04, 2001 3:01 PM
> Subject: Re: Memory leaks?
> Found 390 blocks totaling 3183960 bytes (54.59% of total; avg block size
> At time of each allocation, the call stack was:
>  my_malloc() at 0xe610adb0
>  alloc_root() at 0xe610de64
>  unpack_fields() at 0xe6106334
>  mysql_read_query_result() at 0xe61078c4
>  mysql_real_query() at 0xe6108624
>  our_mysql_query() at line 212 in "mysql.c"
> So is could there be some other explanation? is this memory not freed if I
> miss doing a free_result or something.
You must call free_result() to free select's results, otherwise they still
be allocating (may be until mysql_close).