usually, to release memory is used mysql_free_result().
You do that ?

Regards,

Gelu
_____________________________________________________
G.NET SOFTWARE COMPANY

Permanent e-mail address : [EMAIL PROTECTED]
                                          [EMAIL PROTECTED]
----- Original Message ----- 
From: "bluejack" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 09, 2003 8:26 PM
Subject: Leaking Memory from mysql_real_query()


> 
> This is probably my mistake somewhere, but perhaps someone
> could shed some light on the matter:
> 
> I have an app, compiled with the mysql c apis, that
> is leaking memory. I know this by fine-tuned debugging
> using mallinfo.
> 
> The memory that is being leaked is allocated by calls
> to mysql_real_query(), and I can't figure out what
> needs to happen to free it.
> 
> I *do* free the memory allocated by mysql_store_result(),
> but that does not rollback the memory allocated in
> mysql_real_query().
> 
> I am using the current production version of 4.0.15-standard,
> so I can't imagine this is an actual memory leak in mysql.
> 
> Any idea what I might be doing wrong?
> 
> --bluejack
> 
>   
> 
> 
> -- 
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]
> 
> 

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to