summaryrefslogtreecommitdiff
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-21 01:21:49 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-21 01:21:49 +0000
commit6438934dc7b42eb1bc1897877c79e93b40ea5477 (patch)
tree48e71a1cc5afa0d5fb3e5d3f501e87c911629b01 /libiberty/pexecute.c
parent17a4b680e631b2c569d243efadb386ceb575c9a3 (diff)
downloadgcc-6438934dc7b42eb1bc1897877c79e93b40ea5477.tar.gz
* pexecute.c (pwait): Free vector pointer.
* partition.c (partition_print): Free class_elements pointer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111325 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/pexecute.c')
-rw-r--r--libiberty/pexecute.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libiberty/pexecute.c b/libiberty/pexecute.c
index cce6e300c5d..fa65fe8f49e 100644
--- a/libiberty/pexecute.c
+++ b/libiberty/pexecute.c
@@ -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);
}