libtool-patches
[Top][All Lists]
Advanced

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

user_search_path memleaks


From: Ralf Wildenhues
Subject: user_search_path memleaks
Date: Fri, 8 Oct 2004 15:56:28 +0200
User-agent: Mutt/1.4.1i

OK to apply?

Regards,
Ralf

2004-10-08  Ralf Wildenhues <address@hidden>
 
        * libltdl/ltdl.c (lt_dlexit, lt_dlpath_insertdir): Fix memleaks,
        free user_search_path on lt_dlexit.

Index: libltdl/ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.219
diff -u -r1.219 ltdl.c
--- libltdl/ltdl.c      5 Oct 2004 12:48:55 -0000       1.219
+++ libltdl/ltdl.c      8 Oct 2004 13:53:27 -0000
@@ -294,6 +294,8 @@
 
          loader = next;
        }
+
+      FREE(user_search_path);
     }
 
  done:
@@ -1849,7 +1851,7 @@
       if (*ppath == 0)
        ++errors;
 
-      return errors;
+      goto cleanup;
     }
 
   assert (ppath && *ppath);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]