]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (lt_dlexit, lt_dlpath_insertdir): Fix memleaks,
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 8 Oct 2004 14:16:45 +0000 (14:16 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 8 Oct 2004 14:16:45 +0000 (14:16 +0000)
free user_search_path on lt_dlexit.

ChangeLog
libltdl/ltdl.c

index 79b43033a30a1307e8e243910f583e998e48c21e..c53358dd28549c9f7e7f6812b58135d9ec910148 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-08  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/ltdl.c (lt_dlexit, lt_dlpath_insertdir): Fix memleaks,
+       free user_search_path on lt_dlexit.
+
 2004-10-08  Gary V. Vaughan  <gary@gnu.org>
 
        * config/general.m4sh (func_verbose): Work around a bash bug in
index 06ce70468c018c9014b0cd2c14cdabdc3247b98d..4a1ea94f8f315db97cb1538811caada5ad2212bc 100644 (file)
@@ -294,6 +294,8 @@ lt_dlexit (void)
 
          loader = next;
        }
+
+      FREE(user_search_path);
     }
 
  done:
@@ -1838,7 +1840,7 @@ lt_dlpath_insertdir (char **ppath, char *before, const char *dir)
       if (*ppath == 0)
        ++errors;
 
-      return errors;
+      goto cleanup;
     }
 
   assert (ppath && *ppath);