projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix all failing FPXX tests for tx39-elf.
[platform/upstream/binutils.git]
/
libiberty
/
pexecute.c
diff --git
a/libiberty/pexecute.c
b/libiberty/pexecute.c
index
cce6e30
..
97f1574
100644
(file)
--- 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);
}