output: elf,dwarf -- Fix lookup over existing files

We are missing @next access here so in result we
might allocate same name several times.

Reported-by: "Bae, Chang Seok" <chang.seok.bae@intel.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2017-03-23 19:19:38 +03:00
parent e74fd4b7b8
commit 495b6352d8

View File

@ -3298,6 +3298,7 @@ static void dwarf_findfile(const char * fname)
dwarf_clist = match;
return;
}
match = match->next;
}
}