]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (find_file): Prevent early release of memory
authorGary V. Vaughan <gary@gnu.org>
Thu, 3 Feb 2000 12:54:29 +0000 (12:54 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 3 Feb 2000 12:54:29 +0000 (12:54 +0000)
in filename/*pdir.
From Jon Leichter <jon@symas.com>

ChangeLog
libltdl/ltdl.c

index e3aeb70c7be0fe90acab6f94ab35b6a9e8830a3b..0aaf967d8464d291226885c7f265fdd9723a28d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-02-03  Gary V. Vaughan  <gary@oranda.demon.co.uk>
 
+       * libltdl/ltdl.c (find_file): Prevent early release of memory
+       in filename/*pdir.
+       From Jon Leichter <jon@symas.com>
+
        (sys_wll_init): Deleted.  No longer required.  And this time,
        with feeling!
        (sys_wll_exit): Ditto.
index 2276810aaa9360130e5c410fdd165e1239a87e2f..a433d264a0e12d641bb9b95ad88cae3da6993371 100644 (file)
@@ -1075,8 +1075,8 @@ find_file (basename, search_path, pdir, handle)
                                           strdup, but there would be some
                                           memory overhead. */
                                        *pdir = filename;
-                               } else
                                        filename = 0;
+                               }
                                result = (lt_ptr_t) file;
                                goto cleanup;
                        }
@@ -1106,7 +1106,7 @@ load_deplibs(handle, deplibs)
        if (!deplibs)
                return 0;
        save_search_path = strdup(user_search_path);
-       if (user_search_path && !save_search_path) {                            
+       if (user_search_path && !save_search_path) {
                last_error = LT_DLSTRERROR(NO_MEMORY);
                return 1;
        }