Re: [gnome-db] gda_init



Hi again, 

Resending it , as I have no idea if sent from wrong mail address will be moderated.

I get leak now. 

==14531== 68 bytes in 4 blocks are definitely lost in loss record 1,262 of 1,449
==14531==    at 0x40244B0: malloc (vg_replace_malloc.c:149)
==14531==    by 0x4F930E5: g_malloc (in /usr/lib/libglib-2.0.so.0.1200.11)
==14531==    by 0x4FA6648: g_strdup (in /usr/lib/libglib-2.0.so.0.1200.11)
==14531==    by 0x504D8F1: gda_column_set_table (gda-column.c:425)
==14531==    by 0x527D061: gda_mysql_recordset_new (gda-mysql-recordset.c:920)
==14531==    by 0x52771A1: process_sql_commands (gda-mysql-provider.c:485)
==14531==    by 0x50CCC00: gda_server_provider_execute_command (gda-server-provider.c:642)
==14531==    by 0x5055495: gda_connection_execute_command (gda-connection.c:1144)
==14531==    by 0x50557BF: gda_connection_execute_select_command (gda-connection.c:1231)
==14531==    by 0x5115FF3: midgard_core_query_get_model (midgard_core_query.c:105)
==14531==    by 0x512C867: __get_sg_and_ml_rds (midgard_connection.c:227)
==14531==    by 0x512CF91: __midgard_connection_open (midgard_connection.c:349)


 # __get_sg_and_ml_rds:

GdaDataModel *model = 
                midgard_core_query_get_model(mgd, (const gchar *)tmpstr); /* line 227 */
if(!model) 
	return;
/* get data from model and do not return */
g_object_unref(model);

# midgard_core_query_get_model

GdaCommand *command;
        command = gda_command_new (query,
                        GDA_COMMAND_TYPE_SQL,
                        GDA_COMMAND_OPTION_STOP_ON_ERRORS);

        g_debug("query = %s", query);

        GdaDataModel *model =
                gda_connection_execute_select_command(
                                mgd->private->connection,
                                command, NULL, NULL); /* line 105 */
        gda_command_free(command);

Piotras





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]