Previously if build_id_verify failed, dwz_bfd was cleared to NULL via
release(), but the BFD object was not destroyed.  Use reset() with
nullptr instead to delete the BFD.
gdb/ChangeLog:
	* dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
	instead of releasing ownership.
+2019-02-25  John Baldwin  <jhb@FreeBSD.org>
+
+       * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
+       instead of releasing ownership.
+
 2019-02-25  Jordan Rupprecht  <rupprecht@google.com>
 
        * dwarf2read.c (open_and_init_dwp_file): Call
 
   if (dwz_bfd != NULL)
     {
       if (!build_id_verify (dwz_bfd.get (), buildid_len, buildid))
-       dwz_bfd.release ();
+       dwz_bfd.reset (nullptr);
     }
 
   if (dwz_bfd == NULL)