valgrind error in Parameters.c

Issue #837 resolved
Erik Schnetter created an issue

These lines in Cactus/src/main/Parameters.c (line 2298 ff) are flagged by valgrind:

inval = strtod (temp, &endptr); free(temp);

if (*endptr) /* if we cannot parse as a number, try expression */

Note that endptr is set to a location in the string temp that is freed before endptr is accessed.

Keyword:

Comments (2)

  1. Log in to comment