x86: Don't set eh->local_ref to 1 for linker defined symbols
[deliverable/binutils-gdb.git] / binutils / ar.c
index 25f3b3d0bf0318af1279314a2a40c5b840a96bf0..66a81e70c44bc11a26d93d6208ebe3ddf8fea46b 100644 (file)
@@ -1,5 +1,5 @@
 /* ar.c - Archive modify and extract.
-   Copyright (C) 1991-2017 Free Software Foundation, Inc.
+   Copyright (C) 1991-2018 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
@@ -1197,6 +1197,7 @@ write_archive (bfd *iarch)
   if (smart_rename (new_name, old_name, 0) != 0)
     xexit (1);
   free (old_name);
+  free (new_name);
 }
 
 /* Return a pointer to the pointer to the entry which should be rplacd'd
This page took 0.022759 seconds and 4 git commands to generate.