merge from gcc
authorDJ Delorie <dj@redhat.com>
Tue, 21 Feb 2006 02:01:56 +0000 (02:01 +0000)
committerDJ Delorie <dj@redhat.com>
Tue, 21 Feb 2006 02:01:56 +0000 (02:01 +0000)
libiberty/ChangeLog
libiberty/partition.c
libiberty/pexecute.c

index e319e76b52df674fc09950a27bb2dca3df62ff0e..46ab074f9e2b42f89f3fe9259843d262834e0f91 100644 (file)
@@ -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>
index c145cdb8f02da4d8753fd0aa5d778f774c920778..5f0745c91424ea2ec299b580d86a88f33a78cedd 100644 (file)
@@ -177,6 +177,7 @@ partition_print (partition part, FILE *fp)
       }
   fputc (']', fp);
 
+  free (class_elements);
   free (done);
 }
 
index cce6e300c5d5bd14b8c8ca2ef3bc4b5a3139df92..fa65fe8f49e016aba0587934f00d60fe24db60b5 100644 (file)
@@ -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);
     }
This page took 0.028545 seconds and 4 git commands to generate.