epp - fix tchnical leak for coverity

its technically a leak.. but epp will give up a nd error out anyway
here so... didn't matter.

fix CID 1402655
This commit is contained in:
Carsten Haitzler 2019-08-05 14:49:58 +01:00 committed by Mike Blumenkrantz
parent 08b8cfc07d
commit b832f70eb5
1 changed files with 2 additions and 1 deletions

View File

@ -7115,7 +7115,6 @@ read_token_list(cpp_reader * pfile, int *error_flag)
memcpy(temp->name, (char *)(pfile->token_buffer + name_written),
length);
temp->name[length] = 0;
temp->next = token_ptrs;
token_ptrs = temp;
temp->length = length;
@ -7125,8 +7124,10 @@ read_token_list(cpp_reader * pfile, int *error_flag)
{ /* FIXME */
cpp_error(pfile,
"unterminated token sequence following `#' operator");
free(temp);
return 0;
}
temp->next = token_ptrs;
}
/* We accumulated the names in reverse order.