diff --git a/src/shared.c b/src/shared.c index db14c205a..7c86a8912 100644 --- a/src/shared.c +++ b/src/shared.c @@ -256,10 +256,6 @@ void setup_environment_variables () if (compute) { - // fix for coverity "TAINTED_STRING" issue (using the environment variable directly could be "dangerous") - - compute = strdup (compute); - static char display[100]; u32 compute_len_max = sizeof (display); @@ -277,8 +273,6 @@ void setup_environment_variables () putenv (display); } } - - free (compute); } else {