From: Chema C. C. <jmc...@ig...> - 2007-11-23 00:03:13
|
El jue, 22-11-2007 a las 18:03 +0100, Javier Fernandez escribi=C3=B3: > On Thu, Nov 22, 2007 at 04:09:29PM +0100, Antia Puentes Felpeto wrote: > > Hi! > >=20 > > When I execute a script that does inserts and updates in a database a > > lot of problems of memory are appeared. I attach the code of the script > > and the logs of valgrind for the functions "create_accounts" and > > "update_accounting_with_invoice_data", being run for a small set of > > documents. > >=20 > > Maybe the problem is the way fisterra-base manages the pool of > > connections.=20 > Memory leaks related to f_parameter_manager are due to parameters=20 > hash_map, allocated during f_parameter_manager_init method. This memory=20 > should be freed using f_parameter_manager_shutdown at end of program.=20 >=20 > However, these memory leaks are not important for this script, because=20 > when scrit ends its operations all memmory will be released. As far as i could see at the valgrind logs there are not important leaks=20 that could lead to a real problem, only one related to the retrieval of=20 persons, but as you could see at the end of the report the amount that=20 is not disposed at the end of the execution is only 200kb. So leaks are not the problem, you could check during the execution of the program the=20 There is a problem with the attached C source file, because it is a tar file with the valgrind logs, it is not the update_accounting.c file :( Best Regards, --=20 Chema Casanova http://blogs.igalia.com/chema/ +34 654 212 875 |