realloc linemap->map->vector, invalidating the mapping pointer.
Found by: zzuf+valgrind
svn path=/trunk/yasm/; revision=1866
unsigned long file_line)
{
unsigned long line;
- line_mapping *mapping = &linemap->map->vector[linemap->map->size-1];
+ line_mapping *mapping;
linemap->current++;
yasm_linemap_set(linemap, filename, file_line, 0);
+ mapping = &linemap->map->vector[linemap->map->size-1];
+
line = linemap->current;
linemap->current++;