--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -1130,6 +1130,7 @@
 	}
 
       free (reloc_vector);
+      reloc_vector = NULL;	/* Avoid a double free via out3 on OOM.  */
 
       /* First time through this function, build a table matching
 	 function VM addresses to stabs, then sort based on starting
