aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2006-02-21 02:01:56 +0000
committerDJ Delorie <dj@redhat.com>2006-02-21 02:01:56 +0000
commit1c7a49d2073aeb6961da9aa585efe1e890d8b66e (patch)
tree1e31f1dac3558acf006e7e45cc211e00d6df7e5d /libiberty/pexecute.c
parent22d606e9c28ce92ff1fd0f006b2878ab685cd0b6 (diff)
downloadgdb-1c7a49d2073aeb6961da9aa585efe1e890d8b66e.zip
gdb-1c7a49d2073aeb6961da9aa585efe1e890d8b66e.tar.gz
gdb-1c7a49d2073aeb6961da9aa585efe1e890d8b66e.tar.bz2
merge from gcc
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 cce6e30..fa65fe8 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);
}