From 1c7a49d2073aeb6961da9aa585efe1e890d8b66e Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 21 Feb 2006 02:01:56 +0000 Subject: merge from gcc --- libiberty/pexecute.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libiberty/pexecute.c') 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); } -- cgit v1.1