Re: [gnome-db] [PATCH] Another memory leak



I'll apply that ASAP,

Thanks,

Vivien

2008/3/31 Phil Longstaff <plongstaff rogers com>:
> The attached patch fixes a memory leak in the sqlite provider.  It is
>  based on the release-3.0-branch code.
>
>  Phil
>
> Index: providers/sqlite/gda-sqlite-provider.c
>  ===================================================================
>  --- providers/sqlite/gda-sqlite-provider.c      (revision 3104)
>  +++ providers/sqlite/gda-sqlite-provider.c      (working copy)
>  @@ -327,7 +327,7 @@
>         scnc = g_new0 (SQLITEcnc, 1);
>
>         errmsg = sqlite3_open (filename, &scnc->connection);
>  -       scnc->file = g_strdup (filename);
>  +       scnc->file = filename;
>
>         if (errmsg != SQLITE_OK) {
>                 printf("error %s", sqlite3_errmsg (scnc->connection));
>
> _______________________________________________
>  gnome-db-list mailing list
>  gnome-db-list gnome org
>  http://mail.gnome.org/mailman/listinfo/gnome-db-list
>
>


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