From f3fe553a59d5dd200619a908f279bc2a5fd675b8 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 21 Feb 2006 02:01:56 +0000 Subject: [PATCH] merge from gcc --- libiberty/ChangeLog | 5 +++++ libiberty/pexecute.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index e319e76b5..46ab074f9 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2006-02-17 Uttam Pawar + + * pexecute.c (pwait): Free vector pointer. + * partition.c (partition_print): Free class_elements pointer. + 2006-02-11 Roger Sayle R. Scott Bailey Bill Northcott diff --git a/libiberty/pexecute.c b/libiberty/pexecute.c index cce6e300c..fa65fe8f4 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); } -- 2.11.4.GIT