Fix double free and memory leak

Found with the Clang Static Analyzer.
This is a copy & paste error. This bug was introduced in 72e2307c16 in Jul 2018.
This commit is contained in:
Luflosi
2020-10-15 15:29:44 +02:00
parent 5d13908776
commit d8e4294432

View File

@@ -248,7 +248,7 @@ error:
if (procargs != NULL)
free(procargs);
if (procenv != NULL)
free(procargs);
free(procenv);
return NULL;
}