diff options
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/partition.c | 1 | ||||
-rw-r--r-- | libiberty/pexecute.c | 5 |
3 files changed, 10 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index e319e76b52d..46ab074f9e2 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2006-02-17 Uttam Pawar <uttamp@us.ibm.com> + + * pexecute.c (pwait): Free vector pointer. + * partition.c (partition_print): Free class_elements pointer. + 2006-02-11 Roger Sayle <roger@eyesopen.com> R. Scott Bailey <scott.bailey@eds.com> Bill Northcott <w.northcott@unsw.edu.au> diff --git a/libiberty/partition.c b/libiberty/partition.c index c145cdb8f02..5f0745c9142 100644 --- a/libiberty/partition.c +++ b/libiberty/partition.c @@ -177,6 +177,7 @@ partition_print (partition part, FILE *fp) } fputc (']', fp); + free (class_elements); free (done); } 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); } |