]> 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:10:33 +0000 (14:10 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 8 Oct 2004 14:10:33 +0000 (14:10 +0000)
free user_search_path on lt_dlexit.

ChangeLog
libltdl/ltdl.c

index 475b64075c6ef6de818620a6b34735c5c0edcdaf..d9f299b1e3f1c4d655f03102e6ee04753783beb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-07  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-07  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
 
        * tests/sh.test: Remove tests which fail on AS_SHELL_SANITIZE
index 391598e67740acda7341e759e495d889d2fef83c..1beca9f0131d923aaf6ed01d18af8a3a06d5be1d 100644 (file)
@@ -294,6 +294,8 @@ lt_dlexit (void)
 
          loader = next;
        }
+
+      FREE(user_search_path);
     }
 
  done:
@@ -1849,7 +1851,7 @@ lt_dlpath_insertdir (char **ppath, char *before, const char *dir)
       if (*ppath == 0)
        ++errors;
 
-      return errors;
+      goto cleanup;
     }
 
   assert (ppath && *ppath);