Hi,
> ----- 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?
>
[skip]
> Found 390 blocks totaling 3183960 bytes (54.59% of total; avg block size
> 8164)
> At time of each allocation, the call stack was:
> [1] my_malloc() at 0xe610adb0
> [2] alloc_root() at 0xe610de64
> [3] unpack_fields() at 0xe6106334
> [4] mysql_read_query_result() at 0xe61078c4
> [5] mysql_real_query() at 0xe6108624
> [6] 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).
WBR,
Paul.