This patch ensure that when an error is detected, the freed variables in
authorsemarie <semarie@openbsd.org>
Tue, 23 Jun 2015 15:16:34 +0000 (15:16 +0000)
committersemarie <semarie@openbsd.org>
Tue, 23 Jun 2015 15:16:34 +0000 (15:16 +0000)
commitc4fd534d3100e8f033b107fc7ca7ca3fcaf3ed0f
tree7701574f48e608a2dc7899fda38d8f85dc23bba5
parent8e73cb8c2437f776da5b34c93cc8a38495fb4cdc
This patch ensure that when an error is detected, the freed variables in
elf_symloadx() are reinitialised.

Else show_file() in nm.c will used these variables, even if they has
just been freed. (nm.c +689).

Problem found by afl.

ok miod@
usr.bin/nm/elf.c
usr.bin/nm/util.h