List:Internals« Previous MessageNext Message »
From:Paul Cadach Date:September 4 2001 8:46am
Subject:Re: Memory leaks?
View as plain text  
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.


Thread
Memory leaks?Tobias Rundström3 Sep
  • Re: Memory leaks?Sasha Pachev3 Sep
    • Re: Memory leaks?Tobias Rundström4 Sep
      • Re: Memory leaks?Sasha Pachev4 Sep
  • Re: Memory leaks?Paul Cadach4 Sep
  • Memory leaks?Michael Widenius5 Sep