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:
parent
5d13908776
commit
d8e4294432
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ error:
|
|||
if (procargs != NULL)
|
||||
free(procargs);
|
||||
if (procenv != NULL)
|
||||
free(procargs);
|
||||
free(procenv);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue