pexecute.c (pwait): Free vector pointer.
* pexecute.c (pwait): Free vector pointer. * partition.c (partition_print): Free class_elements pointer. From-SVN: r111325
This commit is contained in:
parent
104d281d20
commit
8f629dc528
@ -1,3 +1,8 @@
|
||||
2006-02-17 Uttam Pawar <uttamp@us.ibm.com>
|
||||
|
||||
* pexecute.c (pwait): Free vector pointer.
|
||||
* partition.c (partition_print): Free class_elements pointer.
|
||||
|
||||
2006-02-11 Roger Sayle <roger@eyesopen.com>
|
||||
R. Scott Bailey <scott.bailey@eds.com>
|
||||
Bill Northcott <w.northcott@unsw.edu.au>
|
||||
|
@ -177,6 +177,7 @@ partition_print (partition part, FILE *fp)
|
||||
}
|
||||
fputc (']', fp);
|
||||
|
||||
free (class_elements);
|
||||
free (done);
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,10 @@ pwait (int pid, int *status, int flags ATTRIBUTE_UNUSED)
|
||||
|
||||
vector = XNEWVEC (int, idx);
|
||||
if (!pex_get_status (pex, idx, vector))
|
||||
return -1;
|
||||
{
|
||||
free (vector)
|
||||
return -1;
|
||||
}
|
||||
*status = vector[pid];
|
||||
free (vector);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user