Some of the leftover memory is due to libltdl not easily being able to
remove all its resources.  This patch, however, is another tiny bit that
M4 can do to help.  :)

Cheers,
Ralf

        * m4/module.c (m4__module_exit): Fix small memleak.

Index: m4/module.c
===================================================================
RCS file: /cvsroot/m4/m4/m4/module.c,v
retrieving revision 1.35
diff -u -r1.35 module.c
--- m4/module.c 27 Oct 2005 16:04:03 -0000      1.35
+++ m4/module.c 22 Jun 2006 06:41:59 -0000
@@ -452,6 +452,8 @@
       errors = module_remove (context, pending, 0);
     }
 
+  lt_dlinterface_free (iface_id);
+
   if (!errors)
     errors = lt_dlexit();
 


_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches

Reply via email to