plug leak if there happens to be an error reading an arg

This commit is contained in:
Doug MacEachern 2005-10-07 17:19:23 +00:00
parent 7fe8f2a007
commit af16d018ec
1 changed files with 1 additions and 0 deletions

View File

@ -751,6 +751,7 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
if (argvp != argvb) { if (argvp != argvb) {
free(argvp); free(argvp);
} }
sigar_proc_args_destroy(sigar, procargs);
return errno; return errno;
} }