fix leak.
authorMichael Meeks <michael@ximian.com>
Sun, 18 Nov 2001 22:26:39 +0000 (22:26 +0000)
committerMichael Meeks <michael@src.gnome.org>
Sun, 18 Nov 2001 22:26:39 +0000 (22:26 +0000)
2001-11-16  Michael Meeks  <michael@ximian.com>

* gmodule.c (parse_libtool_archive): fix leak.

gmodule/ChangeLog
gmodule/gmodule.c

index 8d94e66..20d8fa2 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-16  Michael Meeks  <michael@ximian.com>
+
+       * gmodule.c (parse_libtool_archive): fix leak.
+
 2001-10-30  Dan Winship  <danw@ximian.com>
 
        * Makefile.am (EXTRA_DIST): Add gmodule-dyld.c
index 62f7b8f..25bf18a 100644 (file)
@@ -263,6 +263,7 @@ parse_libtool_archive (const gchar* libtool_name)
       gchar *dir = g_path_get_dirname (libtool_name);
       g_free (lt_libdir);
       lt_libdir = g_strconcat (dir, G_DIR_SEPARATOR_S ".libs", NULL);
+      g_free (dir);
     }
 
   name = g_strconcat (lt_libdir, G_DIR_SEPARATOR_S, lt_dlname, NULL);