inevity / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Source code ERROR #631

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
src/debugallocation.cc, line 532, in gperftools-2.2.1
I found it says:
b = (MallocBlock*) do_malloc(real_malloced_size(size);
so, maybe we need :

diff --git a/src/debugallocation.cc b/src/debugallocation.cc
index 4f03d9c..2a8a20e 100644
--- a/src/debugallocation.cc
+++ b/src/debugallocation.cc
@@ -529,7 +529,7 @@ class MallocBlock {
       b = (MallocBlock*) do_malloc(real_malloced_size(size));
     }
 #else
-    b = (MallocBlock*) do_malloc(real_malloced_size(size);
+    b = (MallocBlock*) do_malloc(real_malloced_size(size));
 #endif

     // It would be nice to output a diagnostic on allocation failure

Finally, thank you for providing such an useful lib!

Original issue reported on code.google.com by iamxuj...@gmail.com on 27 Jun 2014 at 2:34

Attachments:

GoogleCodeExporter commented 9 years ago
Applied. Thanks a lot.

Next time please consider attaching patch with commit message and authorship. 
One way to do it with git is via git format-patch.

Original comment by alkondratenko on 28 Jun 2014 at 8:11