libgda r3128 - in trunk: . providers/postgres
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: libgda r3128 - in trunk: . providers/postgres
- Date: Mon, 7 Apr 2008 14:56:34 +0100 (BST)
Author: murrayc
Date: Mon Apr 7 14:56:34 2008
New Revision: 3128
URL: http://svn.gnome.org/viewvc/libgda?rev=3128&view=rev
Log:
2008-04-07 Murray Cumming <murrayc murrayc com>
* providers/postgres/libmain.c (plugin_init): Make sure that the
module_path string is freed before being reassigned, though this is
probably not the leak that valgrind is reporting here.
Modified:
trunk/ChangeLog
trunk/providers/postgres/libmain.c
Modified: trunk/providers/postgres/libmain.c
==============================================================================
--- trunk/providers/postgres/libmain.c (original)
+++ trunk/providers/postgres/libmain.c Mon Apr 7 14:56:34 2008
@@ -36,8 +36,14 @@
{
/* This is never freed, but that is OK. It is only called once. */
/* But it would be nice to have some cleanup function just to shut valgrind up. murrayc. */
- if (real_path)
+ if (real_path) {
+ if(module_path) {
+ g_free (module_path);
+ module_path = NULL;
+ }
+
module_path = g_strdup (real_path);
+ }
}
const gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]