mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-08 02:02:23 +03:00
elf: Fix use-after-free in ldconfig [BZ #26779]
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@@ -735,9 +735,9 @@ manual_link (char *library)
|
||||
create_links (real_path, path, libname, soname);
|
||||
free (soname);
|
||||
out:
|
||||
free (path);
|
||||
if (path != real_path)
|
||||
free (real_path);
|
||||
free (path);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user