plug leak if there happens to be an error reading an arg
This commit is contained in:
parent
7fe8f2a007
commit
af16d018ec
|
@ -751,6 +751,7 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
|
|||
if (argvp != argvb) {
|
||||
free(argvp);
|
||||
}
|
||||
sigar_proc_args_destroy(sigar, procargs);
|
||||
return errno;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue